mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
Work around PostgreSQL bug.
This commit is contained in:
parent
8a5650792b
commit
0d1bd8db3c
@ -39,6 +39,10 @@ $result=$db->customQuery("SELECT id, active, secret ".
|
||||
"FROM clients ".
|
||||
"ORDER BY id");
|
||||
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
if ($row['active'] = "") {
|
||||
# For some reason PostgreSQL returns empty strings for false values?!
|
||||
$row['active'] = "0";
|
||||
}
|
||||
$everything = $everything .
|
||||
$row['id'] . "\t" . $row['active'] . "\t" . $row['secret'] .
|
||||
"\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user