From fcc4b040f040e46f398a3743e2d0478128c3237e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 17 Jul 2005 02:14:58 +0000 Subject: [PATCH] fixed incorrect use of text->boolean conversion --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index f6849fdc44..48f512308d 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2217,7 +2217,7 @@ class Parser if ( $title->getNamespace() == NS_SPECIAL && $this->mOptions->getAllowSpecialInclusion() ) { # Capture special page output $text = SpecialPage::capturePath( $title ); - if ( $text && !is_object( $text ) ) { + if ( is_string( $text ) ) { $found = true; $noparse = true; $isHTML = true; -- 2.20.1