Update calls.php (#4880)

This commit is contained in:
chansizzle 2019-11-19 11:08:09 -07:00 committed by FusionPBX
parent 231144f669
commit 2565ebc1de
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and enabled = 'true' ";
if (!(if_group("admin") || if_group("superadmin"))) {
if (count($_SESSION['user']['extension']) > 0) {
if (is_array($_SESSION['user']['extension'] && count($_SESSION['user']['extension']) > 0)) {
$sql .= "and (";
$x = 0;
foreach($_SESSION['user']['extension'] as $row) {
@ -349,4 +349,4 @@
require_once "resources/footer.php";
}
?>
?>