Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / member / what-bonus.php
index f8de551a61d04741b31e727f5e6c6ddcb281675f..2cbffdac94529cca80c8f59df0d2fc44f6916338 100644 (file)
@@ -68,7 +68,7 @@ if ((isExtensionActive('autopurge')) && ((getApInactiveSince() > 0))) {
 } // END - if
 
 // Let's check if there are some points left we can 'pay'...
-$result = SQL_QUERY_ESC("SELECT
+$result = sqlQueryEscaped("SELECT
        `userid`,
        ".$pointsColumns." AS `points`,
        `last_online`
@@ -90,10 +90,10 @@ LIMIT {?bonus_ranks?}",
 
 // Reset temporary variable and check for users
 $OUT = '';
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
        // Load our winners...
        $count = 1;
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Prepare data for the template
                $content['count']       = $count;
                $content['last_online'] = generateDateTime($content['last_online'], '2');
@@ -110,7 +110,7 @@ if (!SQL_HASZERONUMS($result)) {
 }
 
 // Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // Prepare content array
 $content['rows'] = $OUT;