Skip to content

Commit eb0986c

Browse files
committed
Fixed an issue if ffprobe isn't installed
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent 7088154 commit eb0986c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/Transcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public function getFileInfo($filePath, $summary = false)
469469
Craft::info(print_r($result, true), __METHOD__);
470470

471471
// Trim down the arrays to just a summary
472-
if ($summary && !empty($result)) {
472+
if ($summary && !empty($result) && is_array($result)) {
473473
$summaryResult = [];
474474
foreach ($result as $topLevelKey => $topLevelValue) {
475475
switch ($topLevelKey) {

0 commit comments

Comments
 (0)