Fix the fax server paging.

This commit is contained in:
Mark Crane 2013-10-31 03:48:08 +00:00
parent 07d9e95d04
commit b61a57eef7
1 changed files with 6 additions and 5 deletions

View File

@ -77,8 +77,9 @@ require_once "resources/paging.php";
$sql .= "and f.domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and u.user_uuid = '".$_SESSION['user_uuid']."' ";
}
if ($prep_statement) {
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
if ($row['num_rows'] > 0) {