diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 79568e591c..2660719d75 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -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']); + } } }