diff --git a/src/app/resource/controllers/ResController.php b/src/app/resource/controllers/ResController.php index 875916f084784c485106d71a3ba260e47ef27eee..a004d503cc5fa00da1a7bf13dcf6bc1aedee1518 100755 --- a/src/app/resource/controllers/ResController.php +++ b/src/app/resource/controllers/ResController.php @@ -712,9 +712,10 @@ class ResController extends ResourceControlController } } - $fileContent = file_get_contents($pathToThumbnail); + $fileContent = @file_get_contents($pathToThumbnail); if ($fileContent === false) { - return $response->withStatus(404)->withJson(['errors' => 'Thumbnail not found on docserver']); + $pathToThumbnail = 'dist/assets/noThumbnail.png'; + $fileContent = @file_get_contents($pathToThumbnail); } $finfo = new \finfo(FILEINFO_MIME_TYPE);