fixed XML error, if no type given

This commit is contained in:
Ralf Becker 2014-01-23 12:43:29 +00:00
parent 8b3b5c84fc
commit 5452c9fca2

View File

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