]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
and rewritten to functions
[mailer.git] / inc / mails / beg_mails.php
index f0aa99ed6715e0c6f54638b357748433761992d4..8072c29321c12352e9888307cef2a964e9cd54d8 100644 (file)
@@ -40,8 +40,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Do not execute when script is in CSS mode
-global $CSS;
-if ($CSS == 1) return;
+if ($GLOBALS['output_mode'] == 1) return;
 
 // Create timemark from saved month
 $mark = mktime(0, 0, 0, getConfig('last_month'), date("d", time()), date('Y', time()));
@@ -82,7 +81,7 @@ case "N": // Begging rallye is deactivated
 
 if (!empty($SQL)) {
        // The SQL command needs to be finisched here (only confirmed accounts!)
-       $SQL .= ") AND status='CONFIRMED' ORDER BY last_online ASC";
+       $SQL .= ") AND `status`='CONFIRMED' ORDER BY last_online ASC";
 
        // Prepare data for the template
        define('__BEG_MIN_POINTS' , TRANSLATE_COMMA(getConfig('beg_points')));