All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / autopurge / purge-tsks.php
index ed61827b87dacce7a2eb4db9664e2702473382a6..470c7cb2ea2d9f0783ecd12536c32dc241b8fc2b 100644 (file)
@@ -50,7 +50,7 @@ if ((GET_EXT_VERSION("task") > "0.0") && (getConfig('ap_tasks') == "Y")) {
 
        // Purge deleted tasks (no notification to admin)
        SQL_QUERY_ESC("DELETE LOW_PRIORITY
-FROM "._MYSQL_PREFIX."_task_system
+FROM `{!MYSQL_PREFIX!}_task_system`
 WHERE status='DELETED' AND task_created <= (UNIX_TIMESTAMP() - %s)",
                array($since), __FILE__, __LINE__);
        $DELETED = SQL_AFFECTEDROWS();