From: Wiktor Walc Date: Mon, 3 Dec 2007 22:24:22 +0000 (+0000) Subject: Fix for 195194 (removed unwanted E_NOTICE errors) X-Git-Tag: 6.x-1.1-beta~3 X-Git-Url: http://drupalcode.org/project/fckeditor.git/commitdiff_plain/c7d6f61d9a90214811fe1bf743e5b32b1e6c3203 Fix for 195194 (removed unwanted E_NOTICE errors) --- diff --git a/fckeditor.module b/fckeditor.module index c6e6b40..fab88f7 100644 --- a/fckeditor.module +++ b/fckeditor.module @@ -257,7 +257,7 @@ function fckeditor_admin($arg = NULL) { } $edit = $_POST; - $op = $_POST['op']; + $op = isset($_POST['op']) ? $_POST['op'] : ""; $op = $arg && !$op ? $arg : $op; @@ -478,13 +478,14 @@ function fckeditor_process_textarea($element) { $wysiwyg_link .= ""; $wysiwyg_link .= "\n"; - + if (!isset($element['#suffix'])) { + $element['#suffix'] = ""; + } //settings are saved as strings, not booleans if ($profile->settings['show_toggle'] == 't') { // Make sure to append to #suffix so it isn't completely overwritten $element['#suffix'] .= $wysiwyg_link; } - // setting some variables $module_drupal_path = drupal_get_path('module', 'fckeditor'); $module_full_path = base_path() . $module_drupal_path; @@ -496,7 +497,6 @@ function fckeditor_process_textarea($element) { // '/drupal5/modules/fckeditor' (length=26) // files_path: // '/drupal5/files' (length=14) - // configured in settings $width = $conf['width'];