login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / modules / chk_login.php
index 9be4517da900ab7d470195e236f3d02463c3aeb2..c04d7117a2b24e98b84a49cef26333e461dc289a 100644 (file)
@@ -55,8 +55,7 @@ if (!empty($GLOBALS['userid']) && !empty($_COOKIE['u_hash']) && !empty($_COOKIE[
        $_COOKIE['mxchange_theme'] = $NewTheme;
 
        $bonus = false;
-       die("<pre>".print_r($CONFIG, true)."</pre>");
-       if ((GET_EXT_VERSION("sql_patches") >= "0.2.8") && (GET_EXT_VERSION("bonus") >= "0.2.1")) {
+       if ((GET_EXT_VERSION("sql_patches") >= "0.2.8") && (GET_EXT_VERSION("bonus") >= "0.2.1") && ($CONFIG['bonus_login_yn'] == 'Y')) {
                // Update last login
                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data
 SET last_login=UNIX_TIMESTAMP()