From: <ik...@us...> - 2009-09-14 23:17:50
|
Revision: 60 http://webfetch.svn.sourceforge.net/webfetch/?rev=60&view=rev Author: ikluft Date: 2009-09-14 23:17:37 +0000 (Mon, 14 Sep 2009) Log Message: ----------- avoid use of unref Modified Paths: -------------- branches/v0.13/lib/WebFetch/Input/Atom.pm Modified: branches/v0.13/lib/WebFetch/Input/Atom.pm =================================================================== --- branches/v0.13/lib/WebFetch/Input/Atom.pm 2009-09-14 23:15:55 UTC (rev 59) +++ branches/v0.13/lib/WebFetch/Input/Atom.pm 2009-09-14 23:17:37 UTC (rev 60) @@ -133,7 +133,8 @@ # save the data record my $id = extract_value( $entry->id() ); my $title = extract_value( $entry->title() ); - my $author = extract_value( $entry->author->name ); + my $author = ( defined $entry->author ) + ? extract_value( $entry->author->name ) : ""; my $link = extract_value( $entry->link->href ); my $updated = extract_value( $entry->updated() ); my $summary = extract_value( $entry->summary() ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |