From: Brion Vibber Date: Sun, 30 May 2004 06:44:47 +0000 (+0000) Subject: Fix bad title detection again; was dying with error on whitelist check X-Git-Tag: 1.5.0alpha1~3141 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=87d342d8448f5c50a567f2d2d471a2f91e570f36;p=lhc%2Fweb%2Fwiklou.git Fix bad title detection again; was dying with error on whitelist check --- 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;