Permalink
Browse files

[34] Only substitude body if its variable is defined

Signed-off-by: DoesntMatter <jaed1@gmx.net>
  • Loading branch information...
DoesntMatter committed Jan 23, 2012
1 parent 53d57fa commit a6f5ad5c3f256c7a7bb73132aed83f19df13d457
Showing with 3 additions and 1 deletion.
  1. +3 −1 libs/RSS.pm
View
@@ -95,7 +95,9 @@ sub CreateRSS {
# $items[$i][5] Subject
# $items[$i][6] Body
$items[$i][6] =~ s/\n/<br><br>/; # Better formatting
if ($items[$i][6]) {
$items[$i][6] =~ s/\n/<br><br>/; # Better formatting
}
if ($github) {
$itemlink = $commit = join("/", $github, "commit", $items[$i][1]);
$items[$i][1] = "<a href=\"$commit\">$items[$i][1]</a>";

0 comments on commit a6f5ad5

Please sign in to comment.