summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-06 15:59:08 -0400
committerJoey Hess <joey@kitenet.net>2010-07-06 15:59:08 -0400
commit45a5e8e972b3f56fbc2b32aa7b9c218c076da7e3 (patch)
tree81e4774e75d67702cb716bb2f9953da2b05d215f
parent7639474244083ec934edc801eb57010162eccf5e (diff)
bugfix
-rw-r--r--IkiWiki/Plugin/aggregate.pm11
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/;