Fixes for reset
[mailer.git] / inc / reset / reset_birthday.php
index dfadfaca9f0908ec20e1f2c8826aed309d4b9be7..2614f26b4d649fac9bf0e6c6eb6d7d8d26430680 100644 (file)
@@ -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) {