Index: fckeditor.admin.inc =================================================================== RCS file: /cvs/drupal/contributions/modules/fckeditor/Attic/fckeditor.admin.inc,v retrieving revision 1.1.2.46 diff -u -r1.1.2.46 fckeditor.admin.inc --- fckeditor.admin.inc 26 Oct 2009 19:53:09 -0000 1.1.2.46 +++ fckeditor.admin.inc 1 Nov 2009 14:41:21 -0000 @@ -626,7 +626,7 @@ '#default_value' => !empty($profile->settings['css_path']) ? $profile->settings['css_path'] : "", '#size' => 40, '#maxlength' => 255, - '#description' => + '#description' => t('Enter path to CSS file (Example: %cssexample1) or a list of CSS files separated by a comma (Example: %cssexample2). Make sure to select %defcss above.', array( '%cssexample1' => 'css/editor.css', @@ -668,7 +668,7 @@ array( '@type' => t('styles'), '%example' => '/fckstyles.xml', - '%setting' => t('Define path to fckstyles.xml'), + '%setting' => t('Define path to fckstyles.xml'), )) .'
'. t('Available placeholders') .':
'. '%h - '. t('host name (%host)', array('%host' => base_path())) .'
'. @@ -1314,14 +1314,16 @@ else { $result = db_query("SELECT * FROM {fckeditor_settings} WHERE name = '%s'", $name); } - + $rules = array(); while (($data = db_fetch_object($result))) { if ($data->settings) { $settings = unserialize($data->settings); foreach (array('excl', 'simple_incl') as $var) { $settings[$var .'_regex'] = ''; - $rules = preg_split('/[\s,]+/', $settings[$var]); + if (isset($settings[$var])) { + $rules = preg_split('/[\s,]+/', $settings[$var]); + } $regex = array(); if (!empty($rules)) {