mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Fixed #258
This commit is contained in:
parent
e4ac5594dc
commit
030e06a56f
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class ImageUploader implements ImageUploaderInterface
|
|||
public function upload(ImageInterface $image)
|
||||
{
|
||||
if (!$image->hasFile()) {
|
||||
throw new \InvalidArgumentException('The given image has no file attached.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (null !== $image->getPath()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue