Update for PHP 8.1

This commit is contained in:
FusionPBX 2023-05-09 18:50:06 -06:00 committed by GitHub
parent c57fa0fc39
commit 2d3f623174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -281,7 +281,7 @@
else {
$exists_one = false;
foreach ($permission as $perm) {
if ($_SESSION["permissions"][$permission] != true) {
if (isset($_SESSION["permissions"][$perm]) && $_SESSION["permissions"][$perm] != true) {
$exists_one = true;
break;
}
@ -291,7 +291,7 @@
}
//single
else {
if ($_SESSION["permissions"][$permission] == true) {
if (isset($_SESSION["permissions"][$permission]) && $_SESSION["permissions"][$permission] == true) {
$result = true;
}
}
@ -1900,7 +1900,7 @@ function number_pad($number,$n) {
}
else {
$string = (array) $string;
if (is_string($string[0])) {
if (isset($string[0])) {
return htmlentities($string[0], ENT_QUOTES | ENT_HTML5, 'UTF-8');
}
}