Add PDO::FETCH_ASSOC to the fetchAll in the voicemail class.
This commit is contained in:
parent
baaec45d10
commit
e3e79f9807
|
|
@ -144,7 +144,7 @@
|
||||||
//$sql .= "limit $this->rows_per_page offset $this->offset ";
|
//$sql .= "limit $this->rows_per_page offset $this->offset ";
|
||||||
$prep_statement = $this->db->prepare(check_sql($sql));
|
$prep_statement = $this->db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll();
|
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||||
$result_count = count($result);
|
$result_count = count($result);
|
||||||
unset ($prep_statement, $sql);
|
unset ($prep_statement, $sql);
|
||||||
if ($result_count > 0) {
|
if ($result_count > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue