]> git.mxchange.org Git - mailer.git/blobdiff - inc/autopurge/purge-unconfirmed.php
Rewrites/fixes for while() loops with merge_array() and SQL_FETCHARRAY() usage
[mailer.git] / inc / autopurge / purge-unconfirmed.php
index bb4e920ab0bf366407497ff88d162de9b67acdda..e6276a98ce45b01d22bdb21a140312622d31029e 100644 (file)
@@ -65,7 +65,10 @@ ORDER BY
                $content['time'] = (getConfig('ap_unconfirmed_time')  / 60 / 60);
 
                // Delete inactive accounts
-               while ($content = merge_array($content, SQL_FETCHARRAY($result_uncon))) {
+               while ($row = SQL_FETCHARRAY($result_uncon)) {
+                       // Merge both arrays
+                       $content = merge_array($content, $row);
+
                        // Remember userids for the admin
                        $userids .= $content['userid'] . ', ';