Dashboard - Switch Status: Fix Registrations count error when no registrations.

This commit is contained in:
fusionate
2023-05-08 13:12:20 +00:00
parent b9670cf385
commit 2047921cde

View File

@@ -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;