From 87d342d8448f5c50a567f2d2d471a2f91e570f36 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 30 May 2004 06:44:47 +0000 Subject: [PATCH] Fix bad title detection again; was dying with error on whitelist check --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 86559978f1..97a7f1237e 100644 --- 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; -- 2.20.1