This commit is contained in:
umpirsky 2013-08-20 11:30:29 +02:00
parent e4ac5594dc
commit 030e06a56f

View file

@ -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()) {