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 0f7f32f..ed47dbf 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 {