1
0
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:
Simon Josefsson 2010-06-01 07:43:32 +00:00
parent 4d7cd1c5c7
commit c9b47f4cd9

View File

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