Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Dec 15, 2018
1 parent 47d1b81 commit 2e4bb9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Core/FieldHandler/EzBinaryFile.php
Expand Up @@ -57,10 +57,11 @@ public function hashToFieldValue($fieldValue, array $context = array())
* @todo check if this works in ezplatform
*/
public function fieldValueToHash($fieldValue, array $context = array())
{
if (!$fieldValue->uri) {
{
if ($fieldValue->uri == null) {
return null;
}

return array(
'path' => realpath($this->ioRootDir) . '/' . ($this->ioDecorator ? $this->ioDecorator->undecorate($fieldValue->uri) : $fieldValue->uri),
'filename'=> $fieldValue->fileName,
Expand Down

0 comments on commit 2e4bb9f

Please sign in to comment.