]> git.mxchange.org Git - mailer.git/commitdiff
Do not update rand_confirmed counter if random referal id is disabled
authorRoland Häder <roland@mxchange.org>
Fri, 12 Aug 2011 19:55:39 +0000 (19:55 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 12 Aug 2011 19:55:39 +0000 (19:55 +0000)
mailid_top.php

index 2f14d1ef1b44c18f2fd354bfd62b72dda23560a8..1fb207a33e1dfdd21779027267d19d16984419f2 100644 (file)
@@ -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__);