From c23e8009bf7b4300b1bc32aea6528a1e7454ec1f Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Jul 2006 05:29:03 +0000 Subject: deal with title-less feeds --- IkiWiki/Plugin/aggregate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki') 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; -- cgit v1.2.3