Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / libs / autopurge_functions.php
index 62073918fc055ad5ebe1ed11fe9e4295fe343428..1b20a242ea13ed78023ca009f47dacfb96b530fa 100644 (file)
@@ -61,7 +61,7 @@ function AUTOPURGE_ADD_POINTS($uid, $points)
        {
                // ... to jackpot account
                ADD_JACKPOT($points);
        {
                // ... to jackpot account
                ADD_JACKPOT($points);
-               if (empty($jackpot)) $jackpot = "0";
+               if (empty($jackpot)) $jackpot = 0;
                $jackpot += $points;
        }
         else
                $jackpot += $points;
        }
         else