X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=683fc0d955cde726b5df2cf26774512b631de5df;hp=31c5e3eea50803a77b2a133e083bba972510f90c;hb=155492a5b96cec674846973a8524238b0365a848;hpb=da5c63bacddced77a951cbe7b223f314885a6c87 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 31c5e3eea5..683fc0d955 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -3335,7 +3335,7 @@ function getUsersTotalLockedReferrals ($userid, $level = NULL) { } // 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` @@ -3355,10 +3355,10 @@ LIMIT 1", ), __FUNCTION__, __LINE__); // Load count - list($GLOBALS[__FUNCTION__][$userid][$level]) = SQL_FETCHROW($result); + list($GLOBALS[__FUNCTION__][$userid][$level]) = sqlFetchRow($result); // Free result - SQL_FREERESULT($result); + sqlFreeResult($result); } // END - if // Return it @@ -3379,7 +3379,7 @@ function convertDollarDataToGetElement ($data) { } // Wrapper function for SQL layer to speed-up things -function SQL_DEBUG_ENABLED () { +function isSqlDebugEnabled () { // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it