corrected wrong SQL syntax in login.php
This commit is contained in:
@@ -15,7 +15,7 @@ $db = new Database();
|
||||
if($uid == '') {
|
||||
$error = 16101;
|
||||
} else {
|
||||
$uid_exists = $db->query('SELECT EXISTS FROM "Users" WHERE "ID" = $1', array($uid))['data'][0]['exists'];
|
||||
$uid_exists = $db->query('SELECT EXISTS (SELECT 1 FROM "Users" WHERE "ID" = $1)', array($uid))['data'][0]['exists'];
|
||||
if ($uid_exists == 't') {
|
||||
$error = 16102;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user