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; }