Update xml_cdr_statistics_inc.php (#4877)
* Update xml_cdr_statistics_inc.php * Update xml_cdr_statistics_inc.php
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -283,7 +283,7 @@
|
|||||||
|
|
||||||
//if not admin or superadmin, only show own calls
|
//if not admin or superadmin, only show own calls
|
||||||
if (!permission_exists('xml_cdr_domain')) {
|
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
|
// create simple user extension array
|
||||||
foreach ($_SESSION['user']['extension'] as $row) {
|
foreach ($_SESSION['user']['extension'] as $row) {
|
||||||
$user_extensions[] = $row['user'];
|
$user_extensions[] = $row['user'];
|
||||||
@@ -491,4 +491,4 @@
|
|||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user