Skip to content

Commit

Permalink
[34] Only substitude body if its variable is defined
Browse files Browse the repository at this point in the history
Signed-off-by: DoesntMatter <jaed1@gmx.net>
  • Loading branch information
DoesntMatter committed Jan 23, 2012
1 parent 53d57fa commit a6f5ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/RSS.pm
Expand Up @@ -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>";
Expand Down

0 comments on commit a6f5ad5

Please sign in to comment.