diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index 82cfab03d3..66b502b03c 100644 --- a/app/call_block/call_block.php +++ b/app/call_block/call_block.php @@ -98,7 +98,7 @@ //prepare to page the results $sql = "select count(*) from view_call_block "; $sql .= "where true "; - if (!empty($show) && $show == "all" && permission_exists('call_block_all')) { + if ($show == "all" && permission_exists('call_block_all')) { //$sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; //$parameters['domain_uuid'] = $_SESSION['domain_uuid']; } @@ -135,7 +135,7 @@ //prepare to page the results $rows_per_page = (!empty($_SESSION['domain']['paging']['numeric'])) ? $_SESSION['domain']['paging']['numeric'] : 50; $param = "&search=".$search; - if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('call_block_all')) { + if ($show == "all" && permission_exists('call_block_all')) { $param .= "&show=all"; } $page = $_GET['page'] ?? ''; @@ -147,7 +147,7 @@ //get the list $sql = "select * from view_call_block "; $sql .= "where true "; - if (!empty($_GET['show']) == "all" && permission_exists('call_block_all')) { + if ($show == "all" && permission_exists('call_block_all')) { //$sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; //$parameters['domain_uuid'] = $_SESSION['domain_uuid']; } @@ -209,7 +209,7 @@ } echo "