From 1d838c81923664d88d0cdfc6053561caf283448f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 11 Feb 2022 16:49:24 +0100 Subject: [PATCH] wip #5089 --- app/Jobs/SearchIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/SearchIndex.php b/app/Jobs/SearchIndex.php index 83f7caf..87251ce 100644 --- a/app/Jobs/SearchIndex.php +++ b/app/Jobs/SearchIndex.php @@ -78,7 +78,7 @@ class SearchIndex extends Index $pdfs = Asset::getPDFInResources(); foreach ($pdfs as $pdf) { $file = $pdf->getFirstMediaInField('file_upload'); - if ($file == null) { + if (null===$file) { throw new \Exception('Aucun fichier dans l\'asset ' . $pdf->id); } $document = new PDF($file->getPath()); -- 2.39.5