]> git.mxchange.org Git - mailer.git/blobdiff - inc/purge/purge-inact.php
If min/max beg points are the same output only min points
[mailer.git] / inc / purge / purge-inact.php
index 917ff93dd157f18438735df9bf227c0368a05daf..e70c0164b86369147f0e4a0baba4e24b75e3b7e6 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -69,7 +69,7 @@ if (isAutopurgeInactiveEnabled()) {
 
        // Check for all accounts
        $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
+       `userid`,`email`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -100,7 +100,7 @@ ORDER BY
 
                        // Load mail template
                        $message = loadEmailTemplate('member_autopurge_inactive', $content, bigintval($content['userid']));
-                       sendEmail($content['email'], '{--MEMBER_AUTOPURGE_INACTIVE_SUBJECT--}', $message);
+                       sendEmail($content['userid'], '{--MEMBER_AUTOPURGE_INACTIVE_SUBJECT--}', $message);
 
                        // Update this account
                        addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ap_notified`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
@@ -120,7 +120,7 @@ ORDER BY
        // Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
        // here for e.g. excluding holiday users
        $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
+       `userid`,`email`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE