corrected wrong SQL syntax in login.php
This commit is contained in:
@@ -15,7 +15,7 @@ $db = new Database();
|
|||||||
if($uid == '') {
|
if($uid == '') {
|
||||||
$error = 16101;
|
$error = 16101;
|
||||||
} else {
|
} 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') {
|
if ($uid_exists == 't') {
|
||||||
$error = 16102;
|
$error = 16102;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user