Update xml_cdr_inc.php (#4876)
This commit is contained in:
parent
1ac40747a3
commit
2bc43685b9
|
|
@ -128,7 +128,7 @@
|
|||
}
|
||||
|
||||
//set the assigned extensions
|
||||
if (!permission_exists('xml_cdr_domain')) {
|
||||
if (!permission_exists('xml_cdr_domain') && is_array($_SESSION['user']['extension'])) {
|
||||
foreach ($_SESSION['user']['extension'] as $row) {
|
||||
if (is_uuid($row['extension_uuid'])) {
|
||||
$extension_uuids[] = $row['extension_uuid'];
|
||||
|
|
@ -286,7 +286,7 @@
|
|||
$sql .= "where c.domain_uuid = :domain_uuid \n";
|
||||
$parameters['domain_uuid'] = $domain_uuid;
|
||||
}
|
||||
if (!permission_exists('xml_cdr_domain')) { //only show the user their calls
|
||||
if (!permission_exists('xml_cdr_domain') && is_array($extension_uuids)) { //only show the user their calls
|
||||
$sql .= "and (c.extension_uuid = '".implode("' or c.extension_uuid = '", $extension_uuids)."') ";
|
||||
}
|
||||
if ($missed == true) {
|
||||
|
|
@ -537,11 +537,11 @@
|
|||
}
|
||||
}
|
||||
$result = $database->select($sql, $parameters, 'all');
|
||||
$result_count = count($result);
|
||||
$result_count = (count($result) ? count($result) : 0);
|
||||
unset($database, $sql, $parameters);
|
||||
|
||||
//return the paging
|
||||
list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true, $result_count); //top
|
||||
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page, false, $result_count); //bottom
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue