Index: lib/eztemplate/classes/eztemplate.php
===================================================================
--- lib/eztemplate/classes/eztemplate.php	(Revision 20524)
+++ lib/eztemplate/classes/eztemplate.php	(Arbeitskopie)
@@ -1746,7 +1746,14 @@
             $preText .= "<p class=\"small\">$path</p><br/>\n";
         $postText = "\n<!-- STOP: including template: $path ($uri) -->\n";
         //include_once( 'lib/eztemplate/classes/eztemplatenodetool.php' );
-        $root[1] = array_merge( array( eZTemplateNodeTool::createTextNode( $preText ) ), $root[1] );
+        if ( isset( $root[1] ) && is_array( $root[1] ) )
+        {
+            $root[1] = array_merge( array( eZTemplateNodeTool::createTextNode( $preText ) ), $root[1] );
+        }
+        else
+        {
+            $root[1] = array( eZTemplateNodeTool::createTextNode( $preText ) );
+        }
         $root[1][] = eZTemplateNodeTool::createTextNode( $postText );
     }
 
