X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllUsers.php;h=a54066153dd4a3fa6fd13933dcdc7d7a32412503;hb=4691389fa46f79cbeaf2daffda407cf7daa66fd4;hp=7d5f6e2a59018a508f6c93f7d606ac790b8acfd5;hpb=86529fef92eb87bf6a77aa8352aba0075cb6f728;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 7d5f6e2a59..a54066153d 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -94,7 +94,7 @@ class ApiQueryAllUsers extends ApiQueryBase { } // no group with the given right(s) exists, no need for a query - if ( !count( $groups ) ) { + if ( $groups === [] ) { $this->getResult()->addIndexedTagName( [ 'query', $this->getModuleName() ], '' ); return; @@ -281,10 +281,10 @@ class ApiQueryAllUsers extends ApiQueryBase { $data['hidden'] = true; } if ( $fld_editcount ) { - $data['editcount'] = intval( $row->user_editcount ); + $data['editcount'] = (int)$row->user_editcount; } if ( $params['activeusers'] ) { - $data['recentactions'] = intval( $row->recentactions ); + $data['recentactions'] = (int)$row->recentactions; // @todo 'recenteditcount' is set for BC, remove in 1.25 $data['recenteditcount'] = $data['recentactions']; }