@@ -187,7 +187,7 @@ public function getVideoUrl($filePath, $videoOptions): string
187187 }
188188
189189 // If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
190- if (file_exists ($ destVideoPath ) && (filemtime ($ destVideoPath ) >= filemtime ($ filePath ))) {
190+ if (file_exists ($ destVideoPath ) && (@ filemtime ($ destVideoPath ) >= @ filemtime ($ filePath ))) {
191191 $ url = $ settings ['transcoderUrls ' ]['video ' ] ?? $ settings ['transcoderUrls ' ]['default ' ];
192192 $ result = Craft::getAlias ($ url ).$ destVideoFile ;
193193 } else {
@@ -371,7 +371,7 @@ public function getAudioUrl($filePath, $audioOptions): string
371371 }
372372
373373 // If the audio file already exists and hasn't been modified, return it. Otherwise, start it transcoding
374- if (file_exists ($ destAudioPath ) && (filemtime ($ destAudioPath ) >= filemtime ($ filePath ))) {
374+ if (file_exists ($ destAudioPath ) && (@ filemtime ($ destAudioPath ) >= @ filemtime ($ filePath ))) {
375375 $ url = $ settings ['transcoderUrls ' ]['audio ' ] ?? $ settings ['transcoderUrls ' ]['default ' ];
376376 $ result = Craft::getAlias ($ url ).$ destAudioFile ;
377377 } else {
@@ -614,7 +614,7 @@ public function getGifUrl($filePath, $gifOptions): string
614614 }
615615
616616 // If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
617- if (file_exists ($ destVideoPath ) && (filemtime ($ destVideoPath ) >= filemtime ($ filePath ))) {
617+ if (file_exists ($ destVideoPath ) && (@ filemtime ($ destVideoPath ) >= @ filemtime ($ filePath ))) {
618618 $ url = $ settings ['transcoderUrls ' ]['gif ' ] ?? $ settings ['transcoderUrls ' ]['default ' ];
619619 $ result = Craft::getAlias ($ url ).$ destVideoFile ;
620620 } else {
0 commit comments