Dashboard: Fix Regstration count (better :)

This commit is contained in:
Nate 2019-09-10 16:44:14 -06:00
parent 6115daebad
commit 167aef8df2
1 changed files with 6 additions and 1 deletions

View File

@ -183,7 +183,12 @@ if (!class_exists('registrations')) {
exit;
}
$array = json_decode(json_encode($xml), true);
$count = $count + @sizeof($array['registrations']);
if (is_array($array['registrations']['registration'][0])) {
$count = $count + @sizeof($array['registrations']['registration']);
}
else {
$count = $count + @sizeof($array['registrations']);
}
}
}