]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool-update.php
Code-style applied, surfbar URLs can now be edited
[mailer.git] / inc / pool-update.php
index b42ef492985d535c3b556bee32b15cd5dd763f62..592ef3b5fc49f32bd3fd84e5f2c3c409b049dd4c 100644 (file)
@@ -68,7 +68,7 @@ if (SQL_NUMROWS($result_main) > 0)
                // Set mail order as "active". That means it will be sent out
                $result_active = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_pool SET data_type='ACTIVE' WHERE id=%s AND data_type='NEW' LIMIT 1",
                 array($DATA[0]), __FILE__, __LINE__);
-               if (SQL_AFFECTEDROWS($result_active) == 1)
+               if (SQL_AFFECTEDROWS() == 1)
                {
                        // "Explode" all receivers into an array
                        if (ereg(";", $DATA[4]))
@@ -90,7 +90,7 @@ if (SQL_NUMROWS($result_main) > 0)
 
                        // Now, if we are good little boys and girls Santa left us some user-ids.
                        // We can now send mails to them...
-                       foreach ($RECEIVERS as $key=>$uid)
+                       foreach ($RECEIVERS as $key => $uid)
                        {
                                // Lookup user ID
                                $result_user = SQL_QUERY_ESC("SELECT sex, surname, family, email FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
@@ -278,7 +278,7 @@ if (SQL_NUMROWS($result_main) > 0)
        }
        if ((sizeof($points_BACK) > 0) && (!empty($points_BACK[0])))
        {
-               foreach ($points_BACK as $uid=>$PB)
+               foreach ($points_BACK as $uid => $PB)
                {
                        // Add points only when we have points left to add and a valid user ID
                        if (($PB > 0) && ($uid > 0))
@@ -362,7 +362,7 @@ if ((EXT_IS_ACTIVE("bonus") && ($cnt < $_CONFIG['max_send'])))
 
                        // Now, if we are good little boys and girls Santa left us some user-ids.
                        // We can now send mails to them...
-                       foreach ($RECEIVERS as $key=>$uid)
+                       foreach ($RECEIVERS as $key => $uid)
                        {
                                // Load personal data
                                //* DEBUG: */ echo "*L:".__LINE__."/".$uid."*<br />";