diff --git a/app/xml_cdr/xml_cdr_extension_summary.php b/app/xml_cdr/xml_cdr_extension_summary.php index 339a69ce02..a9cc503059 100644 --- a/app/xml_cdr/xml_cdr_extension_summary.php +++ b/app/xml_cdr/xml_cdr_extension_summary.php @@ -61,9 +61,7 @@ require_once "resources/require.php"; $sql .= "v_extensions "; $sql .= "where "; $sql .= "enabled = 'true' "; - if ($_GET['showall'] && permission_exists('xml_cdr_all')) { - $sql .= " "; - } else { + if (!($_GET['showall'] == 'true' && permission_exists('xml_cdr_all'))) { $sql .= "and domain_uuid = '".$_SESSION['domain_uuid']."' "; } if (!(if_group("admin") || if_group("superadmin"))) { @@ -191,7 +189,11 @@ require_once "resources/require.php"; echo " ".$text['title-extension_summary']."

\n"; echo " ".$text['description-extension_summary']."
\n"; echo " \n"; - echo "  \n"; + echo " "; + if (permission_exists('xml_cdr_all') && $_GET['showall'] != 'true') { + echo " \n"; + } + echo " \n"; echo " \n"; echo "\n"; echo "
\n"; @@ -268,9 +270,6 @@ require_once "resources/require.php"; echo " "; echo " "; echo " "; - if (permission_exists('xml_cdr_all')) { - echo " \n"; - } echo " \n"; echo " \n"; echo " ";