mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
Don't use rowCount, it is broken.
This commit is contained in:
parent
4d7cd1c5c7
commit
c9b47f4cd9
@ -34,7 +34,7 @@ if (!$db->connect()) {
|
|||||||
|
|
||||||
# Check if key exists
|
# Check if key exists
|
||||||
$r = $db->findBy('yubikeys', 'yk_publicname', $yk, 1);
|
$r = $db->findBy('yubikeys', 'yk_publicname', $yk, 1);
|
||||||
if ($db->rowCount($r) != 1) {
|
if (!$r) {
|
||||||
logdie("ERROR Unknown yubikey: $yk");
|
logdie("ERROR Unknown yubikey: $yk");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user