]> _ Git - odl.git/commitdiff
wip #5089
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 11 Feb 2022 15:49:24 +0000 (16:49 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 11 Feb 2022 15:49:24 +0000 (16:49 +0100)
app/Jobs/SearchIndex.php

index 83f7caf8ce268b12226dc1a66cff274d7882bdb7..87251cec1d4db4c771d4c557cbf641e8d2a241a5 100644 (file)
@@ -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());