Merge "Convert CleanUpTest to use data providers"
[lhc/web/wiklou.git] / includes / User.php
index 9b6d31b..5a117bd 100644 (file)
@@ -149,6 +149,7 @@ class User implements IDBAccessObject {
                'nominornewtalk',
                'noratelimit',
                'override-export-depth',
+               'pagelang',
                'passwordreset',
                'patrol',
                'patrolmarks',
@@ -2945,7 +2946,7 @@ class User implements IDBAccessObject {
                        return null;
                }
 
-               if ( !isset( $this->mEditCount ) ) {
+               if ( $this->mEditCount === null ) {
                        /* Populate the count, if it has not been populated yet */
                        wfProfileIn( __METHOD__ );
                        $dbr = wfGetDB( DB_SLAVE );