X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-general.php;h=30c18977e406b2e62e40ac4afdffd2be1ade0adf;hb=2e394cb5b8a6225a39a6942b1fcc17c37a17a175;hp=fb30bb928c9066080e0ba333f271f47589d54087;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git diff --git a/inc/autopurge/purge-general.php b/inc/autopurge/purge-general.php index fb30bb928c..30c18977e4 100644 --- a/inc/autopurge/purge-general.php +++ b/inc/autopurge/purge-general.php @@ -17,7 +17,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -59,9 +59,9 @@ FROM LEFT JOIN `{?_MYSQL_PREFIX?}_payments` AS t ON - s.payment_id=t.id + s.`payment_id`=t.`id` WHERE - s.timestamp_ordered <= (UNIX_TIMESTAMP() - {?auto_purge?}) + (UNIX_TIMESTAMP() - s.`timestamp_ordered`) >= {?auto_purge?} ORDER BY s.userid ASC', __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { @@ -144,12 +144,12 @@ ORDER BY // Add points from deleted accounts to jackpot, but here just add to notify mail if ($admin_points > 0) { // Send mail to admin - sendAdminNotification('{--ADMIN_AUTOPURGE_SUBJECT--}', 'admin_autopurge_points', translateComma($admin_points)); + sendAdminNotification('{--ADMIN_AUTOPURGE_SUBJECT--}', 'admin_autopurge_points', $admin_points); } // END - if // Run all SQLs here runFilterChain('run_sqls'); } // END - if -// +// [EOF] ?>