Skip to content

Commit d2828cb

Browse files
committed
Fix query
1 parent 120bcca commit d2828cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function commit()
249249

250250
$q->closeCursor();
251251

252-
$q = Common::$database->prepare('SELECT `id` FROM `users` WHERE `username` = :u_name');
252+
$q = Common::$database->prepare('SELECT `id` FROM `users` WHERE `username` = :u_name LIMIT 1;');
253253
$q->bindParam(':u_name', $this->username, PDO::PARAM_STR);
254254

255255
$r = $q->execute();

0 commit comments

Comments
 (0)