From: Roland Häder Date: Fri, 12 Aug 2011 19:55:39 +0000 (+0000) Subject: Do not update rand_confirmed counter if random referal id is disabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c3b5bc7f540276046334e6248a28fad7e27832b;p=mailer.git Do not update rand_confirmed counter if random referal id is disabled --- diff --git a/mailid_top.php b/mailid_top.php index 2f14d1ef1b..1fb207a33e 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -235,7 +235,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr array($userId), __FILE__, __LINE__); // Update random confirmed as well? - if (isExtensionInstalledAndNewer('user', '0.3.4')) { + if ((isExtensionInstalledAndNewer('user', '0.3.4')) && (isRandomReferalIdEnabled())) { // Update second counter SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `rand_confirmed`=`rand_confirmed` + 1 WHERE `userid`=%s LIMIT 1", array($userId), __FILE__, __LINE__);