Index: flag_actions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag/Attic/flag_actions.module,v
retrieving revision 1.1.2.12.2.2
diff -u -r1.1.2.12.2.2 flag_actions.module
--- flag_actions.module	19 Sep 2009 01:30:46 -0000	1.1.2.12.2.2
+++ flag_actions.module	26 Sep 2009 22:49:40 -0000
@@ -186,11 +186,11 @@
   foreach ($actions as $aid => $action) {
     if ($action->event == 'flag') {
       $at_threshold = ($count == $action->threshold);
-      $repeat = ($count > $action->threshold) && (($count - $action->threshold) % $action->repeat_threshold == 0);
+      $repeat = $action->repeat_threshold ? (($count > $action->threshold) && (($count - $action->threshold) % $action->repeat_threshold == 0)) : FALSE;
     }
     elseif ($action->event == 'unflag') {
       $at_threshold = ($count == $action->threshold - 1);
-      $repeat = ($count < $action->threshold - 1) && (($count - $action->threshold - 1) % $action->repeat_threshold == 0);
+      $repeat = $action->repeat_threshold ? (($count < $action->threshold - 1) && (($count - $action->threshold - 1) % $action->repeat_threshold == 0)) : FALSE;
     }
     if (($at_threshold || $repeat) && $action->event == $event && !$action->missing) {
       $context = $action->parameters;
