Skip to content

Commit

Permalink
Prevented file from displaying a link if empty value...
Browse files Browse the repository at this point in the history
  • Loading branch information
Raistlfiren committed Sep 7, 2016
1 parent 7778630 commit 01dfa86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parser/Field/Type/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public function __construct(

public function render()
{
if (empty($this->getValue())) {
return $this->getValue();
}

$values = [];

if ($this->getFieldType() == 'imagelist') {
Expand Down

0 comments on commit 01dfa86

Please sign in to comment.