diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index fffe04f4bf1..1755d505bef 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -284,7 +284,7 @@ class ApiQueryAllUsers extends ApiQueryBase { ApiBase::dieDebug( __METHOD__, 'Saw more duplicate rows than expected' ); } - if ( $params['activeusers'] && $row->recentactions === 0 ) { + if ( $params['activeusers'] && (int)$row->recentactions === 0 ) { // activeusers cache was out of date continue; }