All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / modules / admin / what-list_bonus.php
index b540d55e8aee3afc45a074456e0a8b4e9104b233..c99cb1b254315523ae4ea8efabde335152a0f5fe 100644 (file)
@@ -75,7 +75,7 @@ if (getConfig('bonus_active') == "Y") {
 
        // Check if at least one is in the active rallye
        $result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
-FROM "._MYSQL_PREFIX."_user_data
+FROM `{!MYSQL_PREFIX!}_user_data`
 WHERE status='CONFIRMED' AND ".$USE." > 0".$LAST."
 ORDER BY points DESC, last_online DESC, userid",
         array($ONLINE), __FILE__, __LINE__);