--- token.module.orig	2010-09-24 22:37:22.000000000 +0200
+++ token.module	2010-09-30 17:27:35.060960900 +0200
@@ -630,6 +630,10 @@ function token_find_duplicate_tokens() {
 
   foreach (module_implements('token_list') as $module) {
     $module_tokens = module_invoke($module, 'token_list', 'all');
+    // only test modules that return tokens
+    if (!isset($module_tokens) || !is_array($module_tokens)) {
+      continue;
+    }
     if (in_array($module, array('node', 'taxonomy', 'comment', 'user'))) {
       $module = 'token';
     }
