From: Tim Starling Date: Tue, 11 Dec 2007 07:11:31 +0000 (+0000) Subject: Fix support for PPFrame with no title. X-Git-Tag: 1.31.0-rc.0~50464 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=6d67871e1a860bd194a9444090adac2c9965bd61;p=lhc%2Fweb%2Fwiklou.git Fix support for PPFrame with no title. --- diff --git a/includes/Parser.php b/includes/Parser.php index 5b7d637647..567bcd9b3f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -5262,7 +5262,7 @@ class PPFrame { function __construct( $parser ) { $this->parser = $parser; $this->title = $parser->mTitle; - $this->titleCache = array( $this->title->getPrefixedDBkey() ); + $this->titleCache = array( $this->title ? $this->title->getPrefixedDBkey() : false ); } /** @@ -5470,7 +5470,7 @@ class PPTemplateFrame extends PPFrame { $this->args = $args; $this->title = $title; $this->titleCache = $parent->titleCache; - $this->titleCache[] = $title->getPrefixedDBkey(); + $this->titleCache[] = $title ? $title->getPrefixedDBkey() : false; } function __toString() {