projects
/
catagits/XML-Feed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix mixing and matching of RSS and Atom
[catagits/XML-Feed.git]
/
lib
/
XML
/
Feed
/
Atom.pm
diff --git
a/lib/XML/Feed/Atom.pm
b/lib/XML/Feed/Atom.pm
index
36655b8
..
d6fa522
100644
(file)
--- a/
lib/XML/Feed/Atom.pm
+++ b/
lib/XML/Feed/Atom.pm
@@
-103,8
+103,9
@@
sub entries {
}
sub add_entry {
- my $feed = shift;
- my($entry) = @_;
+ my $feed = shift;
+ my $entry = shift || return;
+ $entry = $feed->_convert_entry($entry);
$feed->{atom}->add_entry($entry->unwrap);
}