CDR: Verify is array before checking size.
This commit is contained in:
parent
dadea8d4c6
commit
e8e67a6af7
|
|
@ -533,7 +533,7 @@
|
|||
$database->password = $_SESSION['cdr']['archive_database_password']['text'];
|
||||
}
|
||||
$result = $database->select($sql, $parameters, 'all');
|
||||
$result_count = (count($result) ? count($result) : 0);
|
||||
$result_count = is_array($result) ? sizeof($result) : 0;
|
||||
unset($database, $sql, $parameters);
|
||||
|
||||
//return the paging
|
||||
|
|
|
|||
Loading…
Reference in New Issue