From 976036e7c7de0a5c122e17fc34fb9d2cfd9c7ff5 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 5 Jul 2006 18:14:06 +0000 Subject: [PATCH] Fix #6533: PHP notice on [[Special:Allpages]] with error_reporting(E_ALL) + bad input --- includes/SpecialAllpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ), -- 2.20.1