diff --git a/functions/account_functions.php b/functions/account_functions.php index 86fee69..1595db4 100644 --- a/functions/account_functions.php +++ b/functions/account_functions.php @@ -25,7 +25,7 @@ function user_id_exists($user_id) function username_exists($username) { - $result = exec_stmt('SELECT username FROM user WHERE username = "?"', 'i', $username)->fetch_assoc(); + $result = exec_stmt('SELECT username FROM user WHERE username = ?', 'i', $username)->fetch_assoc(); if ($result == null) return false;