From: Joey Hess Date: Tue, 6 Jul 2010 19:59:08 +0000 (-0400) Subject: bugfix X-Git-Tag: 3.20100722~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45a5e8e972b3f56fbc2b32aa7b9c218c076da7e3;p=ikiwiki.git bugfix --- 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/;