diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index d78493330d..82cfab03d3 100644 --- a/app/call_block/call_block.php +++ b/app/call_block/call_block.php @@ -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']) == "all" && permission_exists('call_block_all')) { + if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('call_block_all')) { $param .= "&show=all"; } $page = $_GET['page'] ?? ''; diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php index 2d70b00953..eb5b8bd241 100644 --- a/app/call_centers/call_center_agent_edit.php +++ b/app/call_centers/call_center_agent_edit.php @@ -52,7 +52,7 @@ $agent_password = ''; //check for duplicates - if (!empty($_GET["check"]) == 'duplicate') { + if (!empty($_GET["check"]) && $_GET["check"] == 'duplicate') { //agent id if (!empty($_GET["agent_id"])) { $sql = "select agent_name "; @@ -610,4 +610,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/call_centers/call_center_agents.php b/app/call_centers/call_center_agents.php index eec639110c..cccb771a86 100644 --- a/app/call_centers/call_center_agents.php +++ b/app/call_centers/call_center_agents.php @@ -88,7 +88,7 @@ //get total call center agent count from the database $sql = "select count(*) from v_call_center_agents "; $sql .= "where true "; - if (!empty($_GET['show']) != "all" || !permission_exists('call_center_all')) { + if (!empty($_GET['show']) && $_GET['show'] != "all" || !permission_exists('call_center_all')) { $sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; } @@ -145,7 +145,7 @@ } echo "