summaryrefslogtreecommitdiff
path: root/Echolot
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-02-20 14:05:19 +0000
committerPeter Palfrader <peter@palfrader.org>2003-02-20 14:05:19 +0000
commit8d5364886bae43c119039be3fb8a0467650fbe3b (patch)
tree7c560e5d1e2e9d069e87589eceffd8da0c9f4f5d /Echolot
parent2d683fc5c8cc53bd474848f86e7ab95cf1bad8b3 (diff)
Really use latest key
Diffstat (limited to 'Echolot')
-rw-r--r--Echolot/Chain.pm4
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;
};