From: Antoine Musso Date: Wed, 5 Jul 2006 18:14:06 +0000 (+0000) Subject: Fix #6533: PHP notice on [[Special:Allpages]] with error_reporting(E_ALL) + bad input X-Git-Tag: 1.31.0-rc.0~56396 X-Git-Url: http://git.cyclocoop.org//%27http:/ie7-js.googlecode.com/svn/test/index.html/%27?a=commitdiff_plain;h=976036e7c7de0a5c122e17fc34fb9d2cfd9c7ff5;p=lhc%2Fweb%2Fwiklou.git Fix #6533: PHP notice on [[Special:Allpages]] with error_reporting(E_ALL) + bad input --- diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 47682cbaaa..53a5b34887 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -279,7 +279,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { $out2 .= '' . $sk->makeKnownLink( $wgContLang->specialPage( "Allpages" ), wfMsgHtml ( 'allpages' ) ); - if ( $dbr && ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) { + if ( isset($dbr) && $dbr && ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) { $namespaceparam = $namespace ? "&namespace=$namespace" : ""; $out2 .= " | " . $sk->makeKnownLink( $wgContLang->specialPage( "Allpages" ),