XHTML fixes (not fully valid)
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 712a362f90fd947fe7cf6f2692355146203d7609..eb9bf9442276d956f2aa9f06eaf44e84b082798a 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -49,7 +49,7 @@ $msg = null;
 require ("inc/config.php");
 
 // Is the script installed?
-if (defined('mxchange_installed') && (mxchange_installed)) {
+if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
        // Check for userid
        if (!empty($_GET['uid'])) {
                // Init user ID
@@ -132,10 +132,10 @@ if (defined('mxchange_installed') && (mxchange_installed)) {
 
                                // Set mode depending on how many mails the member has to confirm
                                $locked = false;
-                               if (($ref_payout > 0) && ($_CONFIG['allow_direct_pay'] == 'N')) $locked = true;
+                               if (($ref_payout > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true;
 
                                // Is begging rallye active?
-                               if ($_CONFIG['beg_rallye'] == 'Y') {
+                               if ($_CONFIG['beg_rallye'] == "Y") {
                                        // Add points to rallye account
                                        $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET beg_points=beg_points+%s WHERE userid=%d LIMIT 1",
                                         array($points, $uid), __FILE__, __LINE__);