X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Freferral-functions.php;h=0d3f523306c1ffe685776a698e05bb2d253bac5a;hb=e937b6540b932d537f72e827de76dd5be4aefe48;hp=04c32fa24049af1ba4d2b94ba2c2660b5373d45c;hpb=b0ed0547ba277e815ca38b3333b191149a88019c;p=mailer.git diff --git a/inc/referral-functions.php b/inc/referral-functions.php index 04c32fa240..0d3f523306 100644 --- a/inc/referral-functions.php +++ b/inc/referral-functions.php @@ -52,7 +52,7 @@ function getReferralLevelPercents ($level) { // Default is zero $data['percents'] = '0'; - // Do we have cache? + // Is there cache? if ((isset($GLOBALS['cache_array']['refdepths']['level'])) && (isExtensionActive('cache'))) { // First look for level $key = array_search($level, $GLOBALS['cache_array']['refdepths']['level']); @@ -478,7 +478,7 @@ function getPointsDataArrayFromSubject ($subject) { $result = SQL_QUERY_ESC("SELECT `id`,`subject`,`column_name`,`locked_mode`,`payment_method`,`notify_recipient` FROM `{?_MYSQL_PREFIX?}_points_data` WHERE `subject`='%s' LIMIT 1", array($subject), __FUNCTION__, __LINE__); - // Do we have an entry? + // Is there an entry? if (SQL_NUMROWS($result) == 1) { // Then load it $pointsData = SQL_FETCHARRAY($result); @@ -573,7 +573,7 @@ function loadReferralTable ($userid) { $GLOBALS['referral_result'][$userid] = SQL_QUERY_ESC('SELECT `level` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `userid`=%s ORDER BY `level` ASC', array($userid), __FUNCTION__, __LINE__); - // Do we have entries? + // Are there entries? //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',SQL_NUMROWS()=' . SQL_NUMROWS($GLOBALS['referral_result'][$userid])); if (SQL_NUMROWS($GLOBALS['referral_result'][$userid]) > 0) { // Then walk through all levels @@ -588,7 +588,7 @@ function loadReferralTable ($userid) { $GLOBALS['referral_result_refs'][$userid] = SQL_QUERY_ESC('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=%s ORDER BY `userid` ASC', array($userid), __FUNCTION__, __LINE__); - // Do we have entries? + // Are there entries? //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',SQL_NUMROWS()=' . SQL_NUMROWS($GLOBALS['referral_result_refs'][$userid])); if (SQL_NUMROWS($GLOBALS['referral_result_refs'][$userid]) > 0) { // Then again walk through all @@ -699,7 +699,7 @@ function flushReferralTableToDatabase ($userid) { $refid ), __FUNCTION__, __LINE__)); - // Do we have no entry? + // Is there no entry? if ($count == 0) { // Then add it to the SQL $SQL .= '(' . $userid . ',' . $level . ',' . $refid . '),'; @@ -808,7 +808,7 @@ function getReferralId () { // Determines referral id and sets it function determineReferralId () { - // Do we have it already detected? + // Is it already detected? if (isReferralIdValid()) { // Do not determine it, just return it return getReferralId(); @@ -860,7 +860,7 @@ function determineReferralId () { // Default is not found $found = false; - // Do we have nickname or userid set? + // Is there nickname or userid set? if ((isExtensionActive('nickname')) && (isNicknameUsed(getReferralId()))) { // Nickname in URL, so load the id $found = fetchUserData(getReferralId(), 'nickname');