mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Dashboard - Switch Status: Fix Registrations count error when no registrations.
This commit is contained in:
@@ -193,7 +193,7 @@ if (!class_exists('registrations')) {
|
||||
$registrations = $this->get($profile);
|
||||
|
||||
//set the count
|
||||
$count = @sizeof($registrations);
|
||||
$count = !empty($registrations) ? @sizeof($registrations) : 0;
|
||||
|
||||
//return the registrations count
|
||||
return $count;
|
||||
|
||||
Reference in New Issue
Block a user