From cbce2981cafa900ca4b3b7ccfd040d55dbd958df Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 5 Feb 2005 07:14:25 +0000 Subject: [PATCH] * Fix notice error on nonexistent template in wikitext system message --- includes/Parser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index b5ef19f584..dbc770f703 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2084,7 +2084,9 @@ class Parser } # Template cache array insertion - $this->mTemplates[$part1] = $text; + if( $found ) { + $this->mTemplates[$part1] = $text; + } } } -- 2.20.1