Dashboard - Switch Status: Fix Registrations count error when no registrations.
This commit is contained in:
parent
b9670cf385
commit
2047921cde
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue