Commit 0e24816e authored by Robert Lyon's avatar Robert Lyon

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

This fixes a problem for newer PHP versions

behatnotneeded

Change-Id: I62d892889f2ecd69165d791bdbc250487b4443b1
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent a0fb9cf0
......@@ -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