From: Roland Häder Date: Sat, 4 May 2013 16:32:36 +0000 (+0000) Subject: Same as before X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6afa552b9bdcb28975cb1b28a247347284995424;p=core.git Same as before --- 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 {