]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_birthday.php
Even more rewrites to EL
[mailer.git] / inc / reset / reset_birthday.php
index 5dbbb34dc51517df2dbee212852431d34b6c48bf..e2a95fd4710ba79c525a817945410cca9486676c 100644 (file)
@@ -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...