X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_birthday.php;h=2614f26b4d649fac9bf0e6c6eb6d7d8d26430680;hb=dc48c8d18b395c1bf2147baadbecd056f843b818;hp=dfadfaca9f0908ec20e1f2c8826aed309d4b9be7;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/reset/reset_birthday.php b/inc/reset/reset_birthday.php index dfadfaca9f..2614f26b4d 100644 --- a/inc/reset/reset_birthday.php +++ b/inc/reset/reset_birthday.php @@ -55,7 +55,7 @@ $year = date('Y', time()); // Shall I include only active members? $add = "%s"; $value = ''; if ((getConfig('birthday_active')) && (isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) { - $add = " AND `last_online` >= (UNIX_TIMESTAP() - %s)"; + $add = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)"; $value = getConfig('ap_inactive_since'); } // END - if @@ -69,7 +69,8 @@ WHERE `birth_month`=%s AND `birthday_sent` < (UNIX_TIMESTAMP() - ".(getConfig('ONE_DAY') * 364).") ".$add." -ORDER BY `userid` ASC", +ORDER BY + `userid` ASC", array($day, $month, $value), __FILE__, __LINE__); if (SQL_NUMROWS($result_birthday) > 0) {