} $triggered_issues[] = $issue; } } if (count($issues) > 0) { foreach ($issues as $issue) { if (Reminder::isDebug()) { echo " - Processing issue '" . $issue . "'\n"; } // only perform one action per issue id if (in_array($issue, $triggered_issues)) { if (Reminder::isDebug()) { echo " - Ignoring issue '" . $issue . "' because it was found in the list of already triggered issues\n"; } continue; } $triggered_issues[] = $issue; if (Reminder::isDebug()) { echo " - Triggered Action '" . $action['rma_title'] . "' for issue #" . $issue . "\n"; } Reminder_Action::perform($issue, $reminder, $action); } } else { if (Reminder::isDebug()) { echo " - No triggered issues for action '" . $action['rma_title'] . "'\n"; } } } } // release the lock Lock::release('check_reminders');
} $triggered_issues[] = $repeat_issues[$w]; } } if (count($issues) > 0) { for ($z = 0; $z < count($issues); $z++) { if (Reminder::isDebug()) { echo " - Processing issue '" . $issues[$z] . "'\n"; } // only perform one action per issue id if (in_array($issues[$z], $triggered_issues)) { if (Reminder::isDebug()) { echo " - Ignoring issue '" . $issues[$z] . "' because it was found in the list of already triggered issues\n"; } continue; } $triggered_issues[] = $issues[$z]; if (Reminder::isDebug()) { echo " - Triggered Action '" . $reminders[$i]['actions'][$y]['rma_title'] . "' for issue #" . $issues[$z] . "\n"; } Reminder_Action::perform($issues[$z], $reminders[$i], $reminders[$i]['actions'][$y]); } } else { if (Reminder::isDebug()) { echo " - No triggered issues for action '" . $reminders[$i]['actions'][$y]['rma_title'] . "'\n"; } } } } // release the lock Lock::release('check_reminders');