X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FXML%2FFeed%2FAtom.pm;fp=lib%2FXML%2FFeed%2FAtom.pm;h=d6fa5221f45744521f0f555e208047cb9926bd38;hb=33d4cb3f33502990083b6f240b0764c77d62444a;hp=36655b8e9866878f80433cb489cc3b4bd83ee2c7;hpb=f33453c8b1e63ccdc4ee4fd4388eca7e6bbdc501;p=catagits%2FXML-Feed.git diff --git a/lib/XML/Feed/Atom.pm b/lib/XML/Feed/Atom.pm index 36655b8..d6fa522 100644 --- 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); }