Operator Panel: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-06-08 19:32:39 +00:00
parent 1b3af9fb36
commit 4ac06a9194
5 changed files with 38 additions and 27 deletions
+4 -4
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):
@@ -185,8 +185,8 @@
}
//output suggestions, if any
if (sizeof($suggestions) > 0) {
$resp .= "[\n";
if (!empty($suggestions) && is_array($suggestions) && @sizeof($suggestions) > 0) {
$resp = "[\n";
$resp .= implode(",\n", $suggestions)."\n";
$resp .= "]";
@@ -195,4 +195,4 @@
if (isset($_GET['debug'])) { echo "</pre>"; }
}
?>
?>