From 5452c9fca2682b31f48eab84dc67d0867092ea7f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 23 Jan 2014 12:43:29 +0000 Subject: [PATCH] fixed XML error, if no type given --- etemplate/inc/class.etemplate_widget.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index 418791fd8f..21e6c8ebda 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -307,6 +307,7 @@ class etemplate_widget if(!$xml) { + if (empty($type)) $type = 'widget'; $xml = "<$type id='$id'/>"; } //error_log(__METHOD__."('$type', ..., '$id') using $class_name");