All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / libs / country_functions.php
index 8b879e251ca93a455269011b018144cc5eafe24d..fa6694c3dc7533ab8e37c0d188ae8ceb0b7992da 100644 (file)
@@ -40,7 +40,7 @@ if (!defined('__SECURITY')) {
 // Generate a human-readable country description with code
 function COUNTRY_GENERATE_INFO ($id) {
        // Load code and description
-       $result = SQL_QUERY_ESC("SELECT code, descr FROM "._MYSQL_PREFIX."_countries WHERE id=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT code, descr FROM `{!MYSQL_PREFIX!}_countries` WHERE id=%s LIMIT 1",
                array(bigintval($id)), __FILE__, __LINE__);
 
        // Is there an entry?