diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-30 05:29:03 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-30 05:29:03 +0000 |
commit | c23e8009bf7b4300b1bc32aea6528a1e7454ec1f (patch) | |
tree | 59b8501202455d402395db7f1a29d8249c8983d7 | |
parent | 68d7fbfabd3d1b69cf6b9efbfdba9a0f032b977a (diff) |
deal with title-less feeds
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 0ad24dcd0..99b26a546 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -204,7 +204,7 @@ FEED: foreach my $feed (values %feeds) { foreach my $entry ($f->entries) { add_page( feed => $feed, - title => decode_entities($entry->title), + title => defined $entry->title ? decode_entities($entry->title) : "untitled", link => $entry->link, content => $entry->content->body, guid => defined $entry->id ? $entry->id : time."_".$feed->name, @@ -220,7 +220,7 @@ FEED: foreach my $feed (values %feeds) { sub add_page (@) { #{{{ my %params=@_; - + my $feed=$params{feed}; my $guid={}; my $mtime; |