From 1ac40747a3752d7553f2a3c465181de50314b08c Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:10:50 -0700 Subject: [PATCH] Update xml_cdr_statistics_inc.php (#4877) * Update xml_cdr_statistics_inc.php * Update xml_cdr_statistics_inc.php --- app/xml_cdr/xml_cdr_statistics_inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index 9ed34f027a..ed442f6a08 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -283,7 +283,7 @@ //if not admin or superadmin, only show own calls if (!permission_exists('xml_cdr_domain')) { - if (count($_SESSION['user']['extension']) > 0) { // extensions are assigned to this user + if (is_array($_SESSION['user']['extension']) && count($_SESSION['user']['extension']) > 0) { // extensions are assigned to this user // create simple user extension array foreach ($_SESSION['user']['extension'] as $row) { $user_extensions[] = $row['user']; @@ -491,4 +491,4 @@ $x++; } -?> \ No newline at end of file +?>