- bugfixing function getNextCronjobs()
- fixed database-field-names in customer_autoresponder.php - added date-pattern in autoresponder_add and _delete templates - corrected $cronlog->logAction()-calls in cron_autoresponder.php - corrected time-cycle-check in cron_autoresponder.php
This commit is contained in:
@@ -36,9 +36,9 @@ function getNextCronjobs()
|
||||
if($name == '0') continue;
|
||||
|
||||
if($x == 0) {
|
||||
$query.= 'DATE_ADD(FROM_UNIXTIME(`lastrun`), INTERVAL '.$ival.') <= UTC_TIMESTAMP()';
|
||||
$query.= 'UNIX_TIMESTAMP(DATE_ADD(FROM_UNIXTIME(`lastrun`), INTERVAL '.$ival.')) <= UNIX_TIMESTAMP()';
|
||||
} else {
|
||||
$query.= ' OR DATE_ADD(UNIX_TIMESTAMP(`lastrun`), INTERVAL '.$ival.') <= UTC_TIMESTAMP()';
|
||||
$query.= ' OR UNIX_TIMESTAMP(DATE_ADD(FROM_UNIXTIME(`lastrun`), INTERVAL '.$ival.')) <= UNIX_TIMESTAMP()';
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user