Fix bad title detection again; was dying with error on whitelist check
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 30 May 2004 06:44:47 +0000 (06:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 30 May 2004 06:44:47 +0000 (06:44 +0000)
index.php

index 8655997..97a7f12 100644 (file)
--- a/index.php
+++ b/index.php
@@ -48,7 +48,7 @@ wfProfileOut( "main-misc-setup" );
 # If the user is not logged in, the Namespace:title of the article must be in
 # the Read array in order for the user to see it. (We have to check here to
 # catch special pages etc. We check again in Article::view())
-if ( !$wgTitle->userCanRead() ) {
+if ( !is_null( $wgTitle ) && !$wgTitle->userCanRead() ) {
        $wgOut->loginToUse();
        $wgOut->output();
        exit;