Dashboard: Fix Regstration count (better :)
This commit is contained in:
parent
ab0f3b4ae5
commit
0c12e97aa8
|
|
@ -183,7 +183,12 @@ if (!class_exists('registrations')) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$array = json_decode(json_encode($xml), true);
|
$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']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue