]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
A lot calls saved, expression language rewritten:
[mailer.git] / inc / extensions / ext-bonus.php
index b7d4bda9d01169e88b16e455e1fe3cad0a70ca97..4d94f99b42caa3190e8a10a1c3c21a3d0784a541 100644 (file)
@@ -579,7 +579,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
 
        case 'init': // Do stuff when extension is initialized
                // Check for bonus rallye is active and send mails out
-               if ((getExtensionVersion('bonus') >= '0.9.1') && (getConfig('bonus_active') == 'Y') && (getConfig('bonus_new_member_notify') == 'Y')) {
+               if ((getExtensionVersion('bonus') >= '0.9.1') && (ifBonusRallyeActive()) && (getConfig('bonus_new_member_notify') == 'Y')) {
                        // Include file for sending out mails
                        addIncludeToPool('notify', 'inc/mails/bonus_mails.php');
                } // END - if