Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.2.2.157
diff -u -p -r1.2.2.157 mollom.module
--- mollom.module	3 Sep 2010 18:53:51 -0000	1.2.2.157
+++ mollom.module	9 Sep 2010 01:09:16 -0000
@@ -1914,10 +1914,13 @@ function node_mollom_form_info($form_id)
   // Add CCK fields by default.
   if (module_exists('content')) {
     $content_info = content_types($type->type);
-    foreach ($content_info['fields'] as $field_name => $field) {
-      // We only consider text fields for text analysis.
-      if ($field['type'] == 'text') {
-        $form_info['elements'][$field_name] = check_plain(t($field['widget']['label']));
+    // Under yet unknown and uncertain conditions, CCK does not return an array.
+    if (is_array($content_info['fields'])) {
+      foreach ($content_info['fields'] as $field_name => $field) {
+        // We only consider text fields for text analysis.
+        if ($field['type'] == 'text') {
+          $form_info['elements'][$field_name] = check_plain(t($field['widget']['label']));
+        }
       }
     }
   }
