Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / mails / bonus_mails.php
index 058022011bc8f99dd1b90296624c8bf682e0a6b7..24b10ea547bbed240a162e76eed2284ae6345060 100644 (file)
@@ -98,12 +98,12 @@ if (!empty($sql)) {
        $receiver = ''; $userids = array();
 
        // Check for accounts to be notified
-       $result_main = SQL_QUERY($sql, __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result_main)) {
+       $result_main = sqlQuery($sql, __FILE__, __LINE__);
+       if (!ifSqlHasZeroNums($result_main)) {
                // Okay lets notify all users!
-               while ($content = SQL_FETCHARRAY($result_main)) {
+               while ($content = sqlFetchArray($result_main)) {
                        // Update account
-                       SQL_QUERY_ESC("UPDATE
+                       sqlQueryEscaped("UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `bonus_rallye_%s_notify`=UNIX_TIMESTAMP()
@@ -135,12 +135,12 @@ LIMIT 1",
                        $url = 'modules.php?module=index&what=login';
 
                        // Insert mail
-                       addBonusMailToQueue('{--MEMBER_BONUS_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBonusNotifyPoints(), getConfig('bonus_notify_wait'), $url, 0, 'normal', SQL_NUMROWS($result_main));
+                       addBonusMailToQueue('{--MEMBER_BONUS_RALLYE_' . strtoupper($mode) . '_SUBJECT--}', $message, $receiver, getBonusNotifyPoints(), getConfig('bonus_notify_wait'), $url, 0, 'normal', sqlNumRows($result_main));
                } // END - if
        } // END - if
 
        // Free memory
-       SQL_FREERESULT($result_main);
+       sqlFreeResult($result_main);
 } // END - if
 
 //