Explicitally define $fld_rights on all code paths
authorSam Reed <reedy@users.mediawiki.org>
Wed, 9 Feb 2011 22:42:26 +0000 (22:42 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 9 Feb 2011 22:42:26 +0000 (22:42 +0000)
includes/api/ApiQueryAllUsers.php

index 0055ba4..f2979fc 100644 (file)
@@ -35,7 +35,6 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  * @ingroup API
  */
 class ApiQueryAllUsers extends ApiQueryBase {
-
        public function __construct( $query, $moduleName ) {
                parent::__construct( $query, $moduleName, 'au' );
        }
@@ -53,7 +52,7 @@ class ApiQueryAllUsers extends ApiQueryBase {
                        $fld_rights = isset( $prop['rights'] );
                        $fld_registration = isset( $prop['registration'] );
                } else {
-                       $fld_blockinfo = $fld_editcount = $fld_groups = $fld_registration = false;
+                       $fld_blockinfo = $fld_editcount = $fld_groups = $fld_registration = $fld_rights = false;
                }
 
                $limit = $params['limit'];