fix Nathans fix for old editor, to only use fallback for new widgets, if a type is given

This commit is contained in:
Ralf Becker 2013-11-05 10:22:19 +00:00
parent 395dd415f8
commit c7d566533e

View File

@ -1375,7 +1375,7 @@ class editor
Not a known type, use a generic attribute thing to at least allow working
with the attributes provided
*/
if(!boetemplate::$types[$widget['type']] && !$this->extensions[$widget['type']])
if ($widget['type'] && !boetemplate::$types[$widget['type']] && !$this->extensions[$widget['type']])
{
$grid =& $editor->get_widget_by_name('etemplate.editor.widget.generic');
$grid['type'] = 'grid';