--- activity_broken.module	2008-04-29 08:59:30.000000000 -0700
+++ activity.module	2008-05-15 09:26:49.000000000 -0700
@@ -199,7 +199,7 @@ function activity_insert($module, $type,
   // check time limit, ignore activity if within the limit
   $result = db_query("SELECT COUNT(*) FROM {activity} WHERE module = '%s' AND type = '%s' AND operation = '%s' AND data = '%s' AND created >= %d", $module, $type, $operation, serialize($data), (time() - variable_get('activity_time_limit', 30)));
   
-  if (db_fetch_object($result)->count != 0) {
+  if (count(db_fetch_object($result)) != 0) {
     return FALSE;
   }
   
