Fix calendar reminder cron job
This commit is contained in:
parent
64bd766249
commit
85861897a5
@ -78,7 +78,11 @@ if (hesk_dbNumRows($rs) > 0 && !$skip_events) {
|
|||||||
|
|
||||||
$successful_emails = 0;
|
$successful_emails = 0;
|
||||||
$failed_emails = 0;
|
$failed_emails = 0;
|
||||||
while ($row = hesk_dbFetchAssoc($rs) && !$skip_events) {
|
while ($row = hesk_dbFetchAssoc($rs)) {
|
||||||
|
if ($skip_events) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (mfh_sendCalendarReminder($row, $modsForHesk_settings)) {
|
if (mfh_sendCalendarReminder($row, $modsForHesk_settings)) {
|
||||||
$reminders_to_flag[] = $row['reminder_id'];
|
$reminders_to_flag[] = $row['reminder_id'];
|
||||||
$successful_emails++;
|
$successful_emails++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user