From ccc6dbdbbf1a2e1c58cb7af3407b529e835c649a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 17 Jan 2020 14:03:53 -0700 Subject: [PATCH] Update call_block.php Fix the syntax. --- app/call_block/call_block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index a777108bfb..31fd2c80d6 100644 --- a/app/call_block/call_block.php +++ b/app/call_block/call_block.php @@ -122,7 +122,7 @@ //get the list $sql = "select * from view_call_block "; $sql .= "where domain_uuid = :domain_uuid "; - if (!permission_exists('call_block_all') && is_array($_SESSION['user']['extension'] && count($_SESSION['user']['extension']) > 0)) { + if (!permission_exists('call_block_all') && is_array($_SESSION['user']['extension']) && count($_SESSION['user']['extension']) > 0) { $sql .= "and extension_uuid in ("; $x = 0; foreach ($_SESSION['user']['extension'] as $field) {