diff --git a/classes/User.php b/classes/User.php index 3c1a75f..42c9e93 100644 --- a/classes/User.php +++ b/classes/User.php @@ -34,7 +34,7 @@ class User public function __construct($user) { - $user_query = db::c()->query('SELECT * FROM users WHERE id = ?i OR login = "?s"', $user, $user)->fetch_assoc(); + $user_query = db::c()->query('SELECT * FROM users WHERE id = "?s" OR login = "?s"', $user, $user)->fetch_assoc(); foreach ($this as $key => $value) { if (isset($user_query[$key])) { $this->$key = $user_query[$key];