diff options
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 11 |
1 files 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/; |