Skip to content

Commit a70b700

Browse files
committed
fix for when SyncThumbsCommand fails for FileProvider
1 parent d10293f commit a70b700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Thumbnail/FormatThumbnail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function delete(MediaProviderInterface $provider, MediaInterface $media)
8585
// delete the differents formats
8686
foreach ($provider->getFormats() as $format => $definition) {
8787
$path = $provider->generatePrivateUrl($media, $format);
88-
if ($provider->getFilesystem()->has($path)) {
88+
if ($path && $provider->getFilesystem()->has($path)) {
8989
$provider->getFilesystem()->delete($path);
9090
}
9191
}

0 commit comments

Comments
 (0)