All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / modules / guest / what-active.php
index 724810e1dbbb981ea2f3e436f89566e8e0e586e5..990a16b09387c80303f4b7cc3d188a16364c2d11 100644 (file)
@@ -51,7 +51,7 @@ if (EXT_IS_ACTIVE("nickname")) $ADD = "nickname";
 
 // Check for members who were active only this day
 $result = SQL_QUERY_ESC("SELECT userid, ".$ADD.", last_online
-FROM "._MYSQL_PREFIX."_user_data
+FROM `{!MYSQL_PREFIX!}_user_data`
 WHERE last_online >= %s AND status='CONFIRMED'
 ORDER BY last_online DESC LIMIT %s",
        array(START_TDAY, getConfig('active_limit')), __FILE__, __LINE__);