We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 120bcca commit d2828cbCopy full SHA for d2828cb
1 file changed
src/libraries/User.php
@@ -249,7 +249,7 @@ public function commit()
249
250
$q->closeCursor();
251
252
- $q = Common::$database->prepare('SELECT `id` FROM `users` WHERE `username` = :u_name');
+ $q = Common::$database->prepare('SELECT `id` FROM `users` WHERE `username` = :u_name LIMIT 1;');
253
$q->bindParam(':u_name', $this->username, PDO::PARAM_STR);
254
255
$r = $q->execute();
0 commit comments