More use of REVERT_COMMA() fixes problems
[mailer.git] / inc / modules / member / what-payout.php
index b49491e1eb6d6cc333e4b9af526f0d9bfa64986a..25aa636c78b4d803a2f61833e8c60c9d604e5dcb 100644 (file)
@@ -81,7 +81,7 @@ if (empty($_GET['payout']))
        $result = SQL_QUERY_ESC("SELECT id, type, rate, min_points, allow_url
 FROM "._MYSQL_PREFIX."_payout_types
 WHERE %s >= min_points
-ORDER BY type", array(str_replace(",", ".", $TPTS)), __FILE__, __LINE__);
+ORDER BY type", array(REVERT_COMMA($TPTS)), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0)
        {
                // Free memory
@@ -184,7 +184,7 @@ ORDER BY p.payout_timestamp DESC",
                define('PAYOUT_MAX_VALUE' , $max);
                define('PAYOUT_TYPE_VALUE', COMPILE_CODE($type));
 
-               if (str_replace(",", ".", $TPTS) >= $min)
+               if (REVERT_COMMA($TPTS) >= $min)
                {
                        // Ok, he can get be paid
                        if ((isset($_POST['ok'])) && ($PAYOUT <= $PAY_MAX) && ($PAYOUT >= $min))