From 9b6a910f1b2ddc8ba87e05523b51b21e1bb38d41 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 8 Apr 2004 13:47:11 +0000 Subject: [PATCH] fixed handling of invalid title in {{double braces}} --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 49bb50a095..1185a73417 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1273,7 +1273,7 @@ class Parser # Load from database if ( !$found ) { $title = Title::newFromText( $text, NS_TEMPLATE ); - if ( !is_null( $text ) && !$title->isExternal() ) { + if ( is_object( $title ) && !$title->isExternal() ) { # Check for excessive inclusion $dbk = $title->getPrefixedDBkey(); if ( !array_key_exists( $dbk, $this->mIncludeCount ) ) { -- 2.20.1