mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Dashboard: Fix Regstration count (better :)
This commit is contained in:
@@ -183,7 +183,12 @@ if (!class_exists('registrations')) {
|
||||
exit;
|
||||
}
|
||||
$array = json_decode(json_encode($xml), true);
|
||||
$count = $count + @sizeof($array['registrations']);
|
||||
if (is_array($array['registrations']['registration'][0])) {
|
||||
$count = $count + @sizeof($array['registrations']['registration']);
|
||||
}
|
||||
else {
|
||||
$count = $count + @sizeof($array['registrations']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user