]> git.mxchange.org Git - mailer.git/blobdiff - inc/purge/purge-inact.php
Extension ext-forced continued:
[mailer.git] / inc / purge / purge-inact.php
index 917ff93dd157f18438735df9bf227c0368a05daf..25b1d830b01fcce283bc7c459db6efd765e5ebf2 100644 (file)
@@ -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