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 "