followup r65504 — actually check that we hav errors before returnning from checkUserB...
authorMark A. Hershberger <mah@users.mediawiki.org>
Wed, 24 Nov 2010 19:52:59 +0000 (19:52 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Wed, 24 Nov 2010 19:52:59 +0000 (19:52 +0000)
includes/Title.php

index da282fd..13ea7d9 100644 (file)
@@ -1475,7 +1475,7 @@ class Title {
         * @see checkQuickPermissions for parameter information
         */
        private function checkUserBlock( $action, $user, $errors, $doExpensiveQueries, $short ) {
-               if( $short ) {
+               if( $short && count( $errors ) > 0 ) {
                        return $errors;
                }