null check.

This commit is contained in:
James Cole 2015-12-28 07:41:44 +01:00
parent 635b9f9dba
commit 3bf800be6e

View File

@ -67,7 +67,9 @@ class AttachmentHelper implements AttachmentHelperInterface
}
}
} else {
$this->processFile($files, $model);
if (!is_null($files)) {
$this->processFile($files, $model);
}
}
return true;