diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index 82c6522..35d46cc 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -290,7 +290,7 @@ function editor_form_filter_admin_format_submit($form, &$form_state) { } // Create a new editor or update the existing editor. - if ($form_state['editor'] !== FALSE) { + if (!empty($form_state['editor'])) { // Ensure the text format is set: when creating a new text format, this // would equal the empty string. $form_state['editor']->format = $form['#format']->format;