X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=beg.php;h=eb9bf9442276d956f2aa9f06eaf44e84b082798a;hp=712a362f90fd947fe7cf6f2692355146203d7609;hb=c3822adad779fbfc5650f2a50880765375578200;hpb=60494e212a67fe360bfbb481eb4928480a6f379b diff --git a/beg.php b/beg.php index 712a362f90..eb9bf94422 100644 --- 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__);