Эх сурвалжийг харах

Update user_dashboard.php

FusionPBX 7 жил өмнө
parent
commit
50feed5563

+ 2 - 3
core/user_settings/user_dashboard.php

@@ -1125,9 +1125,8 @@
 
 			//registration count
 				if ($fp && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
-					$tmp = event_socket_request($fp, 'api sofia xmlstatus profile internal reg');
-					$registrations = substr_count($tmp, '<registration>');
-					$registrations = (is_numeric($registrations)) ? $registrations : 0;
+					$registration = new registrations;
+					$registrations = $registration->count();
 					$tr_link = "href='".PROJECT_PATH."/app/registrations/registrations.php'";
 					$hud[$n]['html'] .= "<tr ".$tr_link.">\n";
 					$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text'><a ".$tr_link.">".$text['label-registrations']."</a></td>\n";