Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index 9135b5b2cd02003e4e9213a37b76438113484c3b..498444a912e223565386c1440283c5d9e3ae65dc 100644 (file)
@@ -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