fixed handling of invalid title in {{double braces}}
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 8 Apr 2004 13:47:11 +0000 (13:47 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 8 Apr 2004 13:47:11 +0000 (13:47 +0000)
includes/Parser.php

index 49bb50a..1185a73 100644 (file)
@@ -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 ) ) {