corrected wrong SQL syntax in login.php
This commit is contained in:
@@ -16,7 +16,7 @@ if($uid == '') {
|
||||
$error = 16101;
|
||||
} else {
|
||||
$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 == 'f') {
|
||||
$error = 16102;
|
||||
} else {
|
||||
$name = $db->query('SELECT "name" FROM "Users" WHERE "ID" = $1', array($uid))['data'][0]['name'];
|
||||
|
||||
Reference in New Issue
Block a user