Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / filter / bonus_filter.php
index 4ab41f8d26630d2cc4becd69f7ca54e5dacfa340..0f865670303fd75687c26592c21a5ea68054bb05 100644 (file)
@@ -54,7 +54,7 @@ function FILTER_ADD_LOGIN_BONUS ($filterData) {
        if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (isIncludeBonusLoginEnabled())) {
                // Update last login if far enougth away
                // @TODO This query isn't right, it will only update if the user was for a longer time away!
-               SQL_QUERY_ESC('UPDATE
+               sqlQueryEscaped('UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `last_login`=UNIX_TIMESTAMP()
@@ -68,7 +68,7 @@ LIMIT 1',
                );
 
                // Updated entry?
-               $bonus = (!SQL_HASZEROAFFECTED());
+               $bonus = (!ifSqlHasZeroAffectedRows());
        } // END - if
 
        if (($bonus === TRUE) && (getRequestElement('do') == 'bonus')) {