From c7d566533ee1a9552c1e3f84d2662e0c6a0be42c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 5 Nov 2013 10:22:19 +0000 Subject: [PATCH] fix Nathans fix for old editor, to only use fallback for new widgets, if a type is given --- etemplate/inc/class.editor.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index 2944993ed9..24408fdd1e 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -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';