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");