Same as before
[core.git] / inc / classes / main / template / class_BaseTemplateEngine.php
index 0f7f32fcf060f33e3082c09260bb8958a1651a54..ed47dbfae6d2a256f1bca7a547a0c78bdd6cbbdd 100644 (file)
@@ -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 {