]> git.mxchange.org Git - mailer.git/blobdiff - inc/autopurge/purge-unconfirmed.php
Error renamed to 'bug'
[mailer.git] / inc / autopurge / purge-unconfirmed.php
index 5742c3ed52492611c81418ed9dff6bad7fff8090..595794599d42fc61a37527f8a49bfcf02835d686 100644 (file)
@@ -60,13 +60,13 @@ ORDER BY
        `userid` ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result_uncon) > 0) {
                // Prepare variable...
-               $UIDs = '';
+               $userids = '';
                $content['time'] = (getConfig('ap_unconfirmed_time')  / 60 / 60);
 
                // Delete inactive accounts
-               while ($content = SQL_FETCHARRAY($result_uncon)) {
+               while ($content = merge_array($content, SQL_FETCHARRAY($result_uncon))) {
                        // Remember userids for the admin
-                       $UIDs .= $content['userid'] . ', ';
+                       $userids .= $content['userid'] . ', ';
 
                        // Get date/time from timestamp
                        $content['joined'] = generateDateTime($content['joined'], 0);
@@ -76,11 +76,11 @@ ORDER BY
                } // END - while
 
                // Remove last comma
-               $UIDs = str_replace(', ', "\n", substr($UIDs, 0, -2));
+               $userids = str_replace(', ', "\n", substr($userids, 0, -2));
 
                // Send mail notification to admin
                if (getConfig('ap_un_notify') == 'Y') {
-                       sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), 'admin_autopurge_unconfirmed', $UIDs, '');
+                       sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), 'admin_autopurge_unconfirmed', $userids);
                } // END - if
        } // END - if