From 8d5364886bae43c119039be3fb8a0467650fbe3b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 20 Feb 2003 14:05:19 +0000 Subject: Really use latest key --- Echolot/Chain.pm | 4 ++-- 1 file 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 -# $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; }; -- cgit v1.2.3