]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Rewrites for config in SQLs
[mailer.git] / inc / libs / rallye_functions.php
index 1630c50e22b6443d185b75264bc970c5f60a8a51..a6c26adca2cb054eaad5ed362fb55e60c8f67322 100644 (file)
@@ -244,9 +244,9 @@ WHERE
        d.`status`='CONFIRMED' AND
        p.ref_depth=1 AND
        d.max_mails > 0 AND
-       d.mails_confirmed >= %s
+       d.mails_confirmed >= {?ref_payout?}
 LIMIT 1",
-                       array(bigintval($content['userid']), getConfig('ref_payout')), __FUNCTION__, __LINE__);
+                       array(bigintval($content['userid'])), __FUNCTION__, __LINE__);
 
                // Get points
                list($refpoints) = SQL_FETCHROW($result_ref);