diff --git a/ykval-revoke.php b/ykval-revoke.php index 76d9aa2..aaff589 100644 --- a/ykval-revoke.php +++ b/ykval-revoke.php @@ -34,7 +34,7 @@ if (!$db->connect()) { # Check if key exists $r = $db->findBy('yubikeys', 'yk_publicname', $yk, 1); -if ($db->rowCount($r) != 1) { +if (!$r) { logdie("ERROR Unknown yubikey: $yk"); }