From 974ae95ec893184bd2722e0f53ef82ac4d131ebe Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 16 Sep 2020 12:17:34 -0600 Subject: [PATCH] Replace count array with is_array function. --- app/call_centers/call_center_agent_status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/call_centers/call_center_agent_status.php b/app/call_centers/call_center_agent_status.php index 5443987868..e55d2fa260 100644 --- a/app/call_centers/call_center_agent_status.php +++ b/app/call_centers/call_center_agent_status.php @@ -146,7 +146,7 @@ } //use the http post array to change the status - if (count($_POST['agents']) > 0) { + if (is_array($_POST['agents'])) { foreach($_POST['agents'] as $row) { if (strlen($row['agent_status']) > 0) { //agent set status @@ -302,7 +302,7 @@ echo "
\n"; echo "\n"; - if (count($_POST['agents']) > 0 && !$per_queue_login) { + if (is_array($_POST['agents']) && !$per_queue_login) { echo $text['description-call_center_agent_status']."\n"; echo "

\n"; }