Permalink
Browse files

eliminate warning generated in t/16-convert-mult-categories.t

  • Loading branch information...
1 parent 710ed82 commit 3b96974dcf6b4f873882e2717595d2d2acd2cc33 @szabgab szabgab committed Feb 17, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/XML/Feed/Format/RSS.pm
@@ -203,8 +203,10 @@ sub link {
my $link = $entry->{entry}{link} ||
$entry->{entry}{permaLink} ||
$entry->{entry}{guid};
- $link =~ s/^\s+//;
- $link =~ s/\s+$//;
+ if (defined $link) {
+ $link =~ s/^\s+//;
+ $link =~ s/\s+$//;
+ }
}
}

0 comments on commit 3b96974

Please sign in to comment.