diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php
index e488814aee..e23d83afb4 100644
--- a/app/registrations/resources/classes/registrations.php
+++ b/app/registrations/resources/classes/registrations.php
@@ -62,13 +62,11 @@ if (!class_exists('registrations')) {
//get sofia status profile information including registrations
$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'].""; }
$xml_response = str_replace("", "", $xml_response);
$xml_response = str_replace("", "", $xml_response);
if (strlen($xml_response) > 101) {
try {
- $xml_response = str_ireplace("", "", $xml_response);
$xml = new SimpleXMLElement($xml_response);
}
catch(Exception $e) {