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);
|
$registrations = $this->get($profile);
|
||||||
|
|
||||||
//set the count
|
//set the count
|
||||||
$count = @sizeof($registrations);
|
$count = !empty($registrations) ? @sizeof($registrations) : 0;
|
||||||
|
|
||||||
//return the registrations count
|
//return the registrations count
|
||||||
return $count;
|
return $count;
|
||||||
|
|||||||
Reference in New Issue
Block a user