mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
MySQL does not parse 'TRUE' as a true boolean, use '1' instead.
This commit is contained in:
parent
f1fbc3e955
commit
3c9612f923
@ -40,7 +40,7 @@ if (!$r) {
|
||||
|
||||
# Enable/Disable the yubikey
|
||||
if (!$db->updateBy('yubikeys', 'yk_publicname', $yk,
|
||||
array('active'=>($do == "enable" ? "TRUE" : "FALSE")))) {
|
||||
array('active'=>($do == "enable" ? "1" : "0")))) {
|
||||
logdie("ERROR Could not $do for $yk (rows $rows)");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user