]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-beg.php
Wrapper function isBegRallyeEnabled() introduced, rewrites to make usage of isExtensi...
[mailer.git] / inc / extensions / ext-beg.php
index 070c3728650fae375d12d2c919f5bafc2d55be22..bff1c14f4a49cf0b68a97a4c15f399b923829d49 100644 (file)
@@ -292,7 +292,7 @@ PRIMARY KEY (id)
                $result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE `timeout` < (UNIX_TIMESTAMP() - ".($OLD + 60*60).")", __FILE__, __LINE__);
 
                // Check for beg rallye is active and send mails out
-               if ((getConfig('beg_rallye') == 'Y') && (getConfig('beg_new_member_notify') == 'Y')) {
+               if ((isBegRallyeEnabled()) && (getConfig('beg_new_member_notify') == 'Y')) {
                        // Include file for sending out mails
                        addIncludeToPool('notify', 'inc/mails/beg_mails.php');
                } // END - if