Регистрация сломалась.

This commit is contained in:
lopar
2020-10-27 21:55:51 +02:00
parent 7fe8318472
commit fe834372f2
2 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ if ($username && $password) {
if (isset($onl['user_id'])) {
db::c()->query('UPDATE online SET date = ?i WHERE user_id = "?s"', time(), $user_query['id']);
} else {
db::c()->query('INSERT INTO online (user_id, date, room) VALUES (?i, ?i, ?i)', $user_query['id'], time(), $user_query['room']);
db::c()->query('INSERT INTO online (user_id, date, room, real_time) VALUES (?i, ?i, ?i, ?i)', $user_query['id'], time(), $user_query['room'], time());
}
db::c()->query('UPDATE `users` SET `session_id` = "?s", `enter_game` = ?i WHERE `id` = ?i', session_id(), 1, $user_query['id']);