From 45a5e8e972b3f56fbc2b32aa7b9c218c076da7e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Jul 2010 15:59:08 -0400 Subject: [PATCH] bugfix --- IkiWiki/Plugin/aggregate.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 7789c4c2a..e473fc643 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -359,9 +359,14 @@ sub savestate () { my $timestamp=undef; foreach my $feed (keys %feeds) { - my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval}; - if (! defined $timestamp || $timestamp > $t) { - $timestamp=$t; + if (defined $feeds{$feed}->{lastupdate}) { + my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval}; + if (! defined $timestamp || $timestamp > $t) { + $timestamp=$t; + } + } + else { + $timestamp=0; } } $newfile=~s/\.new$/time/; -- 2.26.2