1
0
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:
Simon Josefsson 2010-06-10 10:01:23 +00:00
parent f1fbc3e955
commit 3c9612f923

View File

@ -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)");
}