]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-confirm.php
Added new files from EL branch
[mailer.git] / inc / modules / guest / what-confirm.php
index 73d25eef456dc97436fa83a5fba7167b09036f83..75bf5075bf663349b55a44ff4d22255310c06875 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -99,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__);