From 0eefaae5ce522864a51c63bf4accfccfbaaaba8e Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 5 Feb 2009 07:52:19 +0000 Subject: [PATCH] Avoid E_NOTICE for wikis that give no rights to anonymous users. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index d665f2b001..d6ce01e7ab 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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' ) ) { -- 2.20.1