From 5988eca22b65841af866e13c4a80b9badc440c08 Mon Sep 17 00:00:00 2001 From: "origami11@yandex.ru" Date: Thu, 11 Dec 2025 16:08:16 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=A2=D0=B8=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Role/User.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Role/User.php b/src/Role/User.php index fc96b8d..78f2923 100644 --- a/src/Role/User.php +++ b/src/Role/User.php @@ -74,7 +74,9 @@ class User implements UserInterface if ($result) { $time = time(); $id = $this->id; - $this->db->executeQuery("UPDATE users SET lasttime = $time WHERE id_user = $id"); // Время входа + $this->db->executeQuery( + "UPDATE users SET lasttime = :time WHERE id_user = :id", + ['time' => $time, 'id' => $id]); // Время входа } return $result; }