corrected wrong SQL syntax in login.php

This commit is contained in:
Leander
2017-04-27 21:08:34 +02:00
parent 07f9f8e789
commit bd8e60d957

View File

@@ -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 {