Example: this API result has as many as 17 users with recentactions value given as 0.
I'm no PHP expert but looking at the code lines 253
if ( $params['activeusers'] && $row->recentactions === 0 ) { // activeusers cache was out of date continue; }
and 279:
$data['recentactions'] = (int)$row->recentactions;
Line 253 should probably have been
if ( $params['activeusers'] && (int)$row->recentactions === 0 ) {
(integer type cast is missing).