]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_user_subids.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / daily / daily_user_subids.php
index af0b636b560a4c7810117369a6939bd3851a1f3c..cf4c8f3ae5a447daea4ff1ffa9e23ede36b41abc 100644 (file)
@@ -52,16 +52,16 @@ if (!defined('__SECURITY')) {
 // Is auto-purging activated and configured correctly?
 if ((isApSubidsEnabled()) && (getApSubidsSince() > 0)) {
        // Start purging
-       SQL_QUERY('DELETE LOW_PRIORITY FROM
+       sqlQuery('DELETE LOW_PRIORITY FROM
        `{?_MYSQL_PREFIX?}_subid_log`
 WHERE
        (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(`entry_added`)) >= {?ap_subids_since?}',
                __FILE__, __LINE__);
 
        // Are some entries deleted?
-       if (SQL_AFFECTEDROWS() > 0) {
+       if (sqlAffectedRows() > 0) {
                // Okay, then send an email to the admin
-               sendAdminNotification('{--ADMIN_PURGE_USER_SUBID_LOG_SUBJECT--}', 'admin_purge_user_subid_log', SQL_AFFECTEDROWS());
+               sendAdminNotification('{--ADMIN_PURGE_USER_SUBID_LOG_SUBJECT--}', 'admin_purge_user_subid_log', sqlAffectedRows());
        } // END - if
 } // END - if