X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmails%2Fbeg_mails.php;h=3247190093cd75d992717ee33ec1c86050b4b916;hb=44aadef1eae9767d1d54da2821119aa60a5ee4f6;hp=06ed2b85def8b03cd4804f9f3313d9881e9c1a7c;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/mails/beg_mails.php b/inc/mails/beg_mails.php index 06ed2b85de..3247190093 100644 --- a/inc/mails/beg_mails.php +++ b/inc/mails/beg_mails.php @@ -35,13 +35,13 @@ 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 -if ($CSS == 1) return; +global $CSS; +if (($CSS == 1) || (!defined('__DAILY_RESET'))) return; // Create timemark from saved month $mark = mktime(0, 0, 0, $_CONFIG['last_month'], date("d", time()), date('Y', time()));