// 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
`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) {