From beae34bbe585631eeb5bee26a1c11889c01c873e Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:08:09 -0700 Subject: [PATCH] Update calls.php (#4880) --- app/calls/calls.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/calls/calls.php b/app/calls/calls.php index 7c133f790d..662ea8f8e8 100644 --- a/app/calls/calls.php +++ b/app/calls/calls.php @@ -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"; } -?> \ No newline at end of file +?>