From 7c3b5bc7f540276046334e6248a28fad7e27832b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 12 Aug 2011 19:55:39 +0000 Subject: [PATCH] Do not update rand_confirmed counter if random referal id is disabled --- mailid_top.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__); -- 2.39.2