diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index 39c8d6ccf6..d78493330d 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 ($show == "all" && permission_exists('call_block_all')) { + if (!empty($show) && $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 "