All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / libs / payout_functions.php
index f524c2ae252ff42c55a2f4f2774e2b3244e10827..088a0b4eed8503819fc61d060377735bf6bc0a49 100644 (file)
@@ -44,7 +44,7 @@ function PAYOUT_OUTPUT_PAYOUT_LIST ($points) {
        if ($points > 0) {
                // Pay this out!
                $result = SQL_QUERY_ESC("SELECT id, type, rate, min_points
-FROM "._MYSQL_PREFIX."_payout_types
+FROM `{!MYSQL_PREFIX!}_payout_types`
 WHERE %s >= min_points
 ORDER BY type", array($points), __FILE__, __LINE__);
                if (SQL_NUMROWS($result) > 0) {