Skip to content

Commit

Permalink
Fix adding empty line on first changelog entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schneider committed Jan 2, 2019
1 parent 51731f5 commit 352114c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Components/Helper/ChangeLog.php
Expand Up @@ -106,7 +106,8 @@ public function addChangelog($entry)
$version = $hordeInfo['version']['release'];
$changelog = $this->_component->getWrapper('ChangelogYml');
$info = $changelog[$version];
$notes = explode("\n", trim($info['notes']));
$notes = trim($info['notes']);
$notes = $notes ? explode("\n", $notes) : array();
array_unshift($notes, $entry);
$info['notes'] = implode("\n", $notes) . "\n";
$changelog[$version] = $info;
Expand Down

0 comments on commit 352114c

Please sign in to comment.