]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-confirm.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / guest / what-confirm.php
index 6fb1d870258ca676226d4c1c2f1c8d8eef9299b3..75bf5075bf663349b55a44ff4d22255310c06875 100644 (file)
@@ -100,7 +100,7 @@ if (isGetRequestParameterSet('hash')) {
                                        }
 
                                        // If version matches add ref bonus to refid's account
-                                       if ((getExtensionVersion('bonus') >= '0.4.4') && (getConfig('bonus_active') == 'Y')) {
+                                       if ((isExtensionInstalledAndNewer('bonus', '0.4.4')) && (getConfig('bonus_active') == 'Y')) {
                                                // Add points (directly only!)
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_ref`=`bonus_ref`+{?bonus_ref?} WHERE `userid`=%s LIMIT 1",
                                                        array(bigintval($rid)), __FILE__, __LINE__);