]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/chk_login.php
Fixes for login bonus, some minor rewrites
[mailer.git] / inc / modules / chk_login.php
index a96bc1d65161a3d31f33dbbb85eb73bf3bbd7dd4..5d78f50a1417ed8eac222e6d5ce3d3590930e90e 100644 (file)
@@ -79,7 +79,7 @@ LIMIT 1",
 
        // Bonus is not given by default ;-)
        $bonus = false;
-       if ((GET_EXT_VERSION("sql_patches") >= "0.2.8") && (GET_EXT_VERSION("bonus") >= "0.2.1") && ($_CONFIG['bonus_login_yn'] == "N") && ($_CONFIG['bonus_login_yn'] == "Y")) {
+       if ((GET_EXT_VERSION("sql_patches") >= "0.2.8") && (GET_EXT_VERSION("bonus") >= "0.2.1") && ($_CONFIG['bonus_login_yn'] == "Y")) {
                // Update last login if far enougth away
                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data
 SET last_login=UNIX_TIMESTAMP()