Skip to content

Commit

Permalink
Fix issue with PHP5.4.
Browse files Browse the repository at this point in the history
Thanks @adrianbj. Closes #1.
  • Loading branch information
netcarver committed Mar 9, 2018
1 parent 5d0cd76 commit e158c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModuleReleaseNotes.module
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class ModuleReleaseNotes extends Process implements ConfigurableModule {
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
if (empty($ext)) $ext = 'txt';
$content = file_get_contents($filename);
if (false !== $content && !empty(trim($content))) {
if (false !== $content && false != trim($content)) {
$tmpval = $newtype;
$tmp = $this->formatTextOfType(strtolower($filename), $ext, $content, $transformation_applied, $tmpval);
$tmp = self::addExpansionWrapper($tmp, __('Show All'), 'long', 'full-height');
Expand Down

0 comments on commit e158c63

Please sign in to comment.