]> git.mxchange.org Git - mailer.git/blobdiff - inc/autopurge/purge-inact.php
Rewrites/fixes for while() loops with merge_array() and SQL_FETCHARRAY() usage
[mailer.git] / inc / autopurge / purge-inact.php
index 38fbc334cce7affbf04def7a52f54531c5acfc72..ae1d8907b5bcc9bc898b9959f12e79cf6fb9c4b3 100644 (file)
@@ -96,7 +96,10 @@ ORDER BY
                $content['time']  = (getConfig('ap_inactive_time')  / 60 / 60);
 
                // Mark found accounts as inactive and send an email
-               while ($content = merge_array($content, SQL_FETCHARRAY($result_inactive))) {
+               while ($row = SQL_FETCHARRAY($result_inactive)) {
+                       // Merge both arrays
+                       $content = merge_array($content, $row);
+
                        // Remember userids for the admin
                        $useridsContent .= $content['userid'].", ";