From: Tim Starling Date: Thu, 8 Apr 2004 13:47:11 +0000 (+0000) Subject: fixed handling of invalid title in {{double braces}} X-Git-Tag: 1.3.0beta1~554 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=9b6a910f1b2ddc8ba87e05523b51b21e1bb38d41;p=lhc%2Fweb%2Fwiklou.git fixed handling of invalid title in {{double braces}} --- 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 ) ) {