Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index a753c8d8315afd4e7437c4b7670100e70064f0eb..498444a912e223565386c1440283c5d9e3ae65dc 100644 (file)
@@ -52,7 +52,7 @@ WHERE id='%s' LIMIT 1",
                SQL_FREERESULT($result);
 
                // Check if an entry is empty
-               foreach ($DATA as $k=>$v) {
+               foreach ($DATA as $k => $v) {
                        if (empty($v)) $DATA[$k] = "---";
                }
 
@@ -61,7 +61,7 @@ WHERE id='%s' LIMIT 1",
                 array(bigintval($_GET['id'])), __FILE__, __LINE__);
                list($orders) = SQL_FETCHROW($result_orders);
                SQL_FREERESULT($result_orders);
-               if (empty($orders)) $orders = "0";
+               if (empty($orders)) $orders = 0;
 
                // Prepare all data for the template
                //  Sponsor's ID