Active Call Center - Queue: Updates for PHP 8.1
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
Portions created by the Initial Developer are Copyright (C) 2008-2023
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -46,11 +46,11 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//get the variables
|
//get the variables
|
||||||
$order_by = $_GET["order_by"];
|
$order_by = $_GET["order_by"] ?? null;
|
||||||
$order = $_GET["order"];
|
$order = $_GET["order"] ?? null;
|
||||||
|
|
||||||
//add the search term
|
//add the search term
|
||||||
$search = strtolower($_GET["search"]);
|
$search = strtolower($_GET["search"] ?? '');
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
$sql_search = " (";
|
$sql_search = " (";
|
||||||
$sql_search .= "lower(queue_name) like :search ";
|
$sql_search .= "lower(queue_name) like :search ";
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
//paging the records
|
//paging the records
|
||||||
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
|
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
|
||||||
$param = "&search=".$search;
|
$param = "&search=".$search;
|
||||||
$page = is_numeric($_GET['page']) ? $_GET['page'] : 0;
|
$page = !empty($_GET['page']) && is_numeric($_GET['page']) ? $_GET['page'] : 0;
|
||||||
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page);
|
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page);
|
||||||
list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true);
|
list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true);
|
||||||
$offset = $rows_per_page * $page;
|
$offset = $rows_per_page * $page;
|
||||||
|
|||||||
Reference in New Issue
Block a user