diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-02-20 14:05:19 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-02-20 14:05:19 +0000 |
commit | 8d5364886bae43c119039be3fb8a0467650fbe3b (patch) | |
tree | 7c560e5d1e2e9d069e87589eceffd8da0c9f4f5d /Echolot | |
parent | 2d683fc5c8cc53bd474848f86e7ab95cf1bad8b3 (diff) |
Really use latest key
Diffstat (limited to 'Echolot')
-rw-r--r-- | Echolot/Chain.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Echolot/Chain.pm b/Echolot/Chain.pm index c2c1f56..d6ccda1 100644 --- a/Echolot/Chain.pm +++ b/Echolot/Chain.pm @@ -1,7 +1,7 @@ package Echolot::Chain; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Chain.pm,v 1.10 2003/02/18 06:57:07 weasel Exp $ +# $Id: Chain.pm,v 1.11 2003/02/20 14:05:19 weasel Exp $ # =pod @@ -122,7 +122,7 @@ sub get_latest_key($$) { my $chosen = undef; for my $keyid (Echolot::Globals::get()->{'storage'}->get_keys($address, $type)) { my %key = Echolot::Globals::get()->{'storage'}->get_key($address, $type, $keyid); - $chosen = $keyid if $latest < $key{'last_update'}; + $chosen = $keyid, $latest= $key{'last_update'} if $latest < $key{'last_update'}; }; return $chosen; }; |