From 852571b0c53d6abefb3451a4dfe4b0e055e9a6c0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 31 Aug 2017 23:51:29 -0600 Subject: [PATCH] Update registrations.php --- app/registrations/resources/classes/registrations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index a659e6089e..7d58adced4 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -57,10 +57,10 @@ if (!class_exists('registrations')) { } $prep_statement->execute(); $sip_profiles = $prep_statement->fetchAll(PDO::FETCH_NAMED); - foreach ($sip_profiles as $row) { + foreach ($sip_profiles as $field) { //get sofia status profile information including registrations - $cmd = "api sofia xmlstatus profile ".$row['sip_profile_name']." reg"; + $cmd = "api sofia xmlstatus profile ".$field['sip_profile_name']." reg"; $xml_response = trim(event_socket_request($fp, $cmd)); if ($xml_response == "Invalid Profile!") { $xml_response = "".$text['label-message'].""; } @@ -102,7 +102,7 @@ if (!class_exists('registrations')) { $registrations[$id]['mwi-account'] = $row['mwi-account'] ?: " "; $registrations[$id]['status'] = $row['status'] ?: " "; $registrations[$id]['ping-time'] = $row['ping-time'] ?: " "; - $registrations[$id]['sip_profile_name'] = $row['sip_profile_name']; + $registrations[$id]['sip_profile_name'] = $field['sip_profile_name']; //get network-ip to url or blank if(isset($row['network-ip'])) {