From 6afa552b9bdcb28975cb1b28a247347284995424 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 4 May 2013 16:32:36 +0000 Subject: [PATCH] Same as before --- inc/classes/main/template/class_BaseTemplateEngine.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index 0f7f32fc..ed47dbfa 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -419,6 +419,12 @@ class BaseTemplateEngine extends BaseFrameworkSystem { // Is the variable set? if ($index === FALSE) { + // Is the stack there? + if (!isset($this->varStack[$varGroup])) { + // Then initialize it here + $this->varStack[$varGroup] = array(); + } // END - if + // Not found, add it array_push($this->varStack[$varGroup], $this->generateVariableArray($variableName, $value)); } else { -- 2.39.5