Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / filter / earning_filter.php
index fcc23d78bc94b8d149ed7045e17747fbe64628c1..1125cf1c3ad78e50622d951bcb63901b88e55bf0 100644 (file)
@@ -50,7 +50,7 @@ function FILTER_ADD_EARNING_GROUP_POPUP ($filterData) {
        } // END - if
 
        // Now check if the user has subscription and amount left
-       $result = SQL_QUERY_ESC("SELECT
+       $result = sqlQueryEscaped("SELECT
        `d`.`earning_id`,
        `d`.`earning_provider`,
        `u`.`earning_current_amount`,
@@ -77,9 +77,9 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
        // Are there entries left?
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // Load all names
-               while ($content = SQL_FETCHARRAY($result)) {
+               while ($content = sqlFetchArray($result)) {
                        // Merge the $filterData array in
                        $content = merge_array($content, $filterData);
 
@@ -96,7 +96,7 @@ ORDER BY
        } // END - if
 
        // Free result
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');