From c7d6f61d9a90214811fe1bf743e5b32b1e6c3203 Mon Sep 17 00:00:00 2001 From: Wiktor Walc Date: Mon, 3 Dec 2007 22:24:22 +0000 Subject: [PATCH] Fix for 195194 (removed unwanted E_NOTICE errors) --- fckeditor.module | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) 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']; -- 1.7.4.1