Index: chessboard.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chessboard/chessboard.module,v
retrieving revision 1.69
diff -u -p -r1.69 chessboard.module
--- chessboard.module	15 Nov 2010 08:29:34 -0000	1.69
+++ chessboard.module	15 Nov 2010 14:37:07 -0000
@@ -24,13 +24,15 @@ function chessboard_help($path, $arg) {
  */
 function chessboard_init() {
   $formats = db_query('SELECT format FROM {filter_formats}');
-  while (is_numeric($format = db_result($formats)) && filter_format_allowcache($format)) {
-    $list = cache_get($format . ':chessboard-filter-attached-cids', 'cache_filter');
-    if (isset($list->data)) {
-      foreach ($list->data as $cid => $status) {
-        $cache = cache_get($cid, 'cache_filter');
-        if (isset($cache->data['#attached'])) {
-          chessboard_process_attached($cache->data);
+  while (is_numeric($format = db_result($formats))) {
+    if (filter_format_allowcache($format)) {
+      $list = cache_get($format . ':chessboard-filter-attached-cids', 'cache_filter');
+      if (isset($list->data)) {
+        foreach ($list->data as $cid => $status) {
+          $cache = cache_get($cid, 'cache_filter');
+          if (isset($cache->data['#attached'])) {
+            chessboard_process_attached($cache->data);
+          }
         }
       }
     }
