Rewrites/fixes for while() loops with merge_array() and SQL_FETCHARRAY() usage
[mailer.git] / inc / modules / admin / what-add_points.php
index fe7baa722f4d9aa524005eb7766b5242867ff2c8..f3465c23017eb1cecaa1e8dada4eecba212d2638 100644 (file)
@@ -56,7 +56,10 @@ if (getRequestParameter('userid') == 'all') {
                        __FILE__, __LINE__);
 
                // Process all entries
-               while ($content = merge_array($content, SQL_FETCHARRAY($result_main))) {
+               while ($row = SQL_FETCHARRAY($result_main)) {
+                       // Merge both arrays
+                       $content = merge_array($content, $row);
+
                        // Remove depth to prevent booking errors. This is a bad coding
                        // practice, thats also why we need to write this project from
                        // scratch...