diff --git a/keyserver b/keyserver index 8d80e9d..d3208f6 100755 --- a/keyserver +++ b/keyserver @@ -418,7 +418,7 @@ sub get_version($record, $versions) { } sub insert_gpg_key ($fingerprint, $keyid, $version, $flags, $armored, $blob) { - my $test = $pg->db->select('gpg_key', ['id'], {fingerprint => $fingerprint})->hash->{id}; + my $test = $pg->db->select('gpg_key', ['id'], {fingerprint => $fingerprint}); if ($test) { $pg->db->delete('gpg_key', {fingerprint => $fingerprint}); }