We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d10293f commit a70b700Copy full SHA for a70b700
Thumbnail/FormatThumbnail.php
@@ -85,7 +85,7 @@ public function delete(MediaProviderInterface $provider, MediaInterface $media)
85
// delete the differents formats
86
foreach ($provider->getFormats() as $format => $definition) {
87
$path = $provider->generatePrivateUrl($media, $format);
88
- if ($provider->getFilesystem()->has($path)) {
+ if ($path && $provider->getFilesystem()->has($path)) {
89
$provider->getFilesystem()->delete($path);
90
}
91
0 commit comments