X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-confirm.php;h=75bf5075bf663349b55a44ff4d22255310c06875;hp=6fb1d870258ca676226d4c1c2f1c8d8eef9299b3;hb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa diff --git a/inc/modules/guest/what-confirm.php b/inc/modules/guest/what-confirm.php index 6fb1d87025..75bf5075bf 100644 --- a/inc/modules/guest/what-confirm.php +++ b/inc/modules/guest/what-confirm.php @@ -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__);