]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / wrapper-functions.php
index 31c5e3eea50803a77b2a133e083bba972510f90c..683fc0d955cde726b5df2cf26774512b631de5df 100644 (file)
@@ -3335,7 +3335,7 @@ function getUsersTotalLockedReferrals ($userid, $level = NULL) {
                } // END - if
 
                // Check for all referrals
                } // END - if
 
                // Check for all referrals
-               $result = SQL_QUERY_ESC("SELECT
+               $result = sqlQueryEscaped("SELECT
        COUNT(`d`.`userid`) AS `cnt`
 FROM
        `{?_MYSQL_PREFIX?}_user_data` AS `d`
        COUNT(`d`.`userid`) AS `cnt`
 FROM
        `{?_MYSQL_PREFIX?}_user_data` AS `d`
@@ -3355,10 +3355,10 @@ LIMIT 1",
                        ), __FUNCTION__, __LINE__);
 
                // Load count
                        ), __FUNCTION__, __LINE__);
 
                // Load count
-               list($GLOBALS[__FUNCTION__][$userid][$level]) = SQL_FETCHROW($result);
+               list($GLOBALS[__FUNCTION__][$userid][$level]) = sqlFetchRow($result);
 
                // Free result
 
                // Free result
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
        } // END - if
 
        // Return it
        } // END - if
 
        // Return it
@@ -3379,7 +3379,7 @@ function convertDollarDataToGetElement ($data) {
 }
 
 // Wrapper function for SQL layer to speed-up things
 }
 
 // Wrapper function for SQL layer to speed-up things
-function SQL_DEBUG_ENABLED () {
+function isSqlDebugEnabled () {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it