From 44196de152ed5836229eacd96e1451fc46078950 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 20 Jun 2012 15:23:27 +0200 Subject: [PATCH] Bugfix for incorrect handling of boolean values in FetchVariable function --- class.templater.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/class.templater.php b/class.templater.php index e0c0af5..56cfc07 100644 --- a/class.templater.php +++ b/class.templater.php @@ -627,6 +627,15 @@ class TemplateIfElement extends TemplateSyntaxElement $a = $this->FetchVariable($this->left, $data); $b = $this->right; + if($b == "true") + { + $b = true; + } + elseif($b == "false") + { + $b = false; + } + switch($this->operator) { case "=":