Followup r79549, only try and filter by group (or right) if there are some groups...
authorSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 20:27:30 +0000 (20:27 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 20:27:30 +0000 (20:27 +0000)
includes/api/ApiQueryAllUsers.php

index a2657fb..5180ff4 100644 (file)
@@ -85,7 +85,7 @@ class ApiQueryAllUsers extends ApiQueryBase {
                        }
                }
 
-               if ( !is_null( $params['group'] ) ) {
+               if ( !is_null( $params['group'] ) && count( $params['group'] ) ) {
                        $useIndex = false;
                        // Filter only users that belong to a given group
                        $this->addTables( 'user_groups', 'ug1' );