--- includes/ckeditor.lib.inc	2011-01-11 09:36:55.000000000 +0300
+++ includes/ckeditor.lib.inc.new	2011-01-18 19:13:55.000000000 +0300
@@ -421,7 +421,7 @@ function ckeditor_profiles_compile( $inp
     }
 
     if ( $compiled === TRUE ) {
-        return ( $input_format === FALSE ) ? $_ckeditor_compiled : $_ckeditor_compiled[$input_format];
+        return ( $input_format === FALSE ) ? $_ckeditor_compiled : ( isset( $_ckeditor_compiled[$input_format] ) ? $_ckeditor_compiled[$input_format] : array() );
     }
 
     $global_profile = ckeditor_profile_load('CKEditor Global Profile');
@@ -972,9 +972,7 @@ function ckeditor_load_by_field( $field,
         $enabled = FALSE;
     }
 
-    $settings = ckeditor_profiles_compile($format);
-
-    if ($enabled && $settings) {
+    if ($enabled && ($settings = ckeditor_profiles_compile($format))) {
         $textarea_id = $field['#id'];
         $class[] = 'ckeditor-mod';
         $_ckeditor_ids[] = $textarea_id;
