Avoid E_NOTICE for wikis that give no rights to anonymous users.
authorAndrew Garrett <werdna@users.mediawiki.org>
Thu, 5 Feb 2009 07:52:19 +0000 (07:52 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Thu, 5 Feb 2009 07:52:19 +0000 (07:52 +0000)
includes/Title.php

index d665f2b..d6ce01e 100644 (file)
@@ -1496,7 +1496,7 @@ class Title {
                }
 
                # Shortcut for public wikis, allows skipping quite a bit of code
-               if ($wgGroupPermissions['*']['read'])
+               if ( !empty( $wgGroupPermissions['*'] ) )
                        return true;
 
                if( $wgUser->isAllowed( 'read' ) ) {