We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca786e9 commit cc0d418Copy full SHA for cc0d418
controller/upload_file.rst
@@ -456,9 +456,9 @@ controller.
456
return;
457
}
458
459
- $fileName = $entity->getBrochure();
460
-
461
- $entity->setBrochure(new File($this->uploader->getTargetDir().'/'.$fileName));
+ if ($fileName = $entity->getBrochure()) {
+ $entity->setBrochure(new File($this->uploader->getTargetDir().'/'.$fileName));
+ }
462
463
464
0 commit comments