projects
/
catagits/XML-Feed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a0cca2a
)
Fix bug with adding first category
Simon Wistow [Tue, 9 Dec 2008 23:48:16 +0000 (23:48 +0000)]
lib/XML/Feed/Format/RSS.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/XML/Feed/Format/RSS.pm
b/lib/XML/Feed/Format/RSS.pm
index
15d6d52
..
c4afc72
100644
(file)
--- a/
lib/XML/Feed/Format/RSS.pm
+++ b/
lib/XML/Feed/Format/RSS.pm
@@
-253,7
+253,7
@@
sub category {
$item->{dc}{subject} = [@tmp];
} else {
my $r = $item->{category} || $item->{dc}{subject};
- my @r = ref($r)? @$r : ($r);
+ my @r = ref($r)? @$r : defined $r? ($r) : ();
return wantarray? @r : $r[0];
}
}