X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmails%2Fbeg_mails.php;h=545b552a69545838e1412004186e71594b191ed3;hb=357b2ca133fc1f89db74097955c366cb4bee6996;hp=06ed2b85def8b03cd4804f9f3313d9881e9c1a7c;hpb=143e78d4231adddd9e706cbf55ec5dd8c1651890;p=mailer.git diff --git a/inc/mails/beg_mails.php b/inc/mails/beg_mails.php index 06ed2b85de..545b552a69 100644 --- a/inc/mails/beg_mails.php +++ b/inc/mails/beg_mails.php @@ -35,12 +35,12 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg"); +} elseif (!EXT_IS_ACTIVE("beg")) { return; } // Do not execute when script is in CSS mode +global $CSS; if ($CSS == 1) return; // Create timemark from saved month @@ -133,7 +133,7 @@ SET beg_ral_notify='%s', beg_ral_%s_notify='%s' WHERE userid=%s LIMIT 1", { // Send normal notification mail to the members $MSG = LOAD_EMAIL_TEMPLATE("beg_".$MODE."_notify", array(), $uid); - SEND_EMAIL($email, $SUBJECT, $MSG); + SEND_EMAIL($uid, $SUBJECT, $MSG); } }