Active Calls: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-05-25 19:41:42 +00:00
parent c4a42dda96
commit 4b86260336
3 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
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.
Contributor(s):
@@ -46,7 +46,7 @@
$text = $language->get();
//get the HTTP values and set as variables
$show = trim($_REQUEST["show"]);
$show = trim($_REQUEST["show"] ?? '');
if ($show != "all") { $show = ''; }
//show the header
@@ -56,7 +56,7 @@
//load gateways into a session variable
$sql = "select gateway_uuid, domain_uuid, gateway from v_gateways where enabled = 'true' ";
$database = new database;
$gateways = $database->select($sql, $parameters, 'all');
$gateways = $database->select($sql, $parameters ?? null, 'all');
foreach ($gateways as $row) {
$_SESSION['gateways'][$row['gateway_uuid']] = $row['gateway'];
}

View File

@@ -156,7 +156,7 @@
echo "<tr class='list-header'>\n";
if (permission_exists('call_active_hangup')) {
echo " <th class='checkbox'>\n";
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='if (this.checked) { refresh_stop(); } else { refresh_start(); } list_all_toggle();' ".($rows ?: "style='visibility: hidden;'").">\n";
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='if (this.checked) { refresh_stop(); } else { refresh_start(); } list_all_toggle();' ".(empty($rows) ? "style='visibility: hidden;'" : null).">\n";
echo " </th>\n";
}
echo " <th>".$text['label-profile']."</th>\n";

View File

@@ -70,7 +70,7 @@
}
}
}
if (is_uuid($_REQUEST['uuid'])) {
if (!empty($_REQUEST['uuid']) && is_uuid($_REQUEST['uuid'])) {
$calls[] = $_REQUEST['uuid'];
}