From 2047921cdee136d95dc9fd739d043dba47108ce7 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 8 May 2023 13:12:20 +0000 Subject: [PATCH] Dashboard - Switch Status: Fix Registrations count error when no registrations. --- app/registrations/resources/classes/registrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;