X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Freset%2Freset_birthday.php;h=e2a95fd4710ba79c525a817945410cca9486676c;hb=7618bd22d09e9bddab2ca39308f6523c06dd1521;hp=5dbbb34dc51517df2dbee212852431d34b6c48bf;hpb=04b69ac9f33369cbf654396c4a42cb1fff710ff4;p=mailer.git diff --git a/inc/reset/reset_birthday.php b/inc/reset/reset_birthday.php index 5dbbb34dc5..e2a95fd471 100644 --- a/inc/reset/reset_birthday.php +++ b/inc/reset/reset_birthday.php @@ -54,10 +54,9 @@ $month = date('m', time()); $year = date('Y', time()); // Shall I include only active members? -$add = "%s"; $value = ''; +$add = '%s'; $value = ''; if ((getConfig('birthday_active')) && (isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) { - $add = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)"; - $value = getConfig('ap_inactive_since'); + $add = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})"; } // END - if // Only confirmed members shall receive birthday mails...