diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 61fcffcc32..abac6c1c47 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -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;