Commit 58c25a60 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic

Bug 1824674: Get correct user count on user stats details page

This fixes a problem for newer PHP versions


Change-Id: I62d892889f2ecd69165d791bdbc250487b4443b1
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
(cherry picked from commit 0e24816e)
parent 6f1db049
......@@ -627,7 +627,7 @@ function userdetails_stats_table($limit, $offset, $extra, $institution, $urllink
$result['settings']['start'] = ($start) ? $start : null;
$result['settings']['end'] = $end;
$result['settings']['users'] = count($users);
$result['settings']['users'] = !empty($users) ? count($users) : 0;
if ($count < 1) {
return $result;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment