Update call_center_queue.php

This commit is contained in:
FusionPBX 2019-05-28 15:14:22 -06:00 committed by GitHub
parent 7123d16f9e
commit f47dd79aa4
1 changed files with 4 additions and 3 deletions

View File

@ -80,13 +80,14 @@
echo "</tr></table>\n";
//get the call center queue count
$sql = "select * from v_call_center_queues ";
$sql = "select count(*) from v_call_center_queues ";
$sql .= "where domain_uuid = :domain_uuid ";
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
$database = new database;
$parameters['domain_uuid'] = $domain_uuid;
$result = $database->select($sql, $parameters, 'all');
$num_rows = $database->select($sql, $parameters, 'column');
//paging the records
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];