}
// Init variables
- $admin_points = "0";
+ $admin_points = 0;
// Then check for outdated mail order. We don't delete them just the confirmation links will be deleted.
$result = SQL_QUERY_ESC("SELECT s.id, s.userid, s.pool_id, t.price
if (SQL_NUMROWS($result) > 0)
{
// Start deleting procedure
- $uid = "0"; $points = "0";
+ $uid = 0; $points = 0;
while(list($mid, $sender, $pool, $price) = SQL_FETCHROW($result))
{
// Check if confirmation links are purged or not
{
// Directly add points back to senders account
AUTOPURGE_ADD_POINTS($uid, $points);
- $points = "0";
+ $points = 0;
}
// Add points
$uid = $sender; $points += $price; $admin_points += $price;
if (SQL_NUMROWS($result) > 0)
{
// Start deleting procedure
- $points = "0";
+ $points = 0;
while (list($bid, $price) = SQL_FETCHROW($result))
{
// Check if confirmation links are purged or not