]> git.mxchange.org Git - core.git/commitdiff
Same as before
authorRoland Häder <roland@mxchange.org>
Sat, 4 May 2013 16:32:36 +0000 (16:32 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 4 May 2013 16:32:36 +0000 (16:32 +0000)
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 {