From 0f71cfab1740917d4a5c7546c6f79eec4db29552 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 16 Jun 2019 14:56:33 -0600 Subject: [PATCH] Update index.php --- app/basic_operator_panel/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/basic_operator_panel/index.php b/app/basic_operator_panel/index.php index 77bf13ea3c..66a9729bf3 100644 --- a/app/basic_operator_panel/index.php +++ b/app/basic_operator_panel/index.php @@ -87,10 +87,7 @@ $sql .= "and user_uuid = :user_uuid "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['user_uuid'] = $_SESSION['user']['user_uuid']; - $result = $database->select($sql, $parameters); - if (is_array($result)) { - $call_center_agent_uuid = $result[0]['call_center_agent_uuid']; - } + $call_center_agent_uuid = $database->select($sql, $parameters, 'column'); //update the user_status if (isset($call_center_agent_uuid)) {