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'])) {