Skip to content

Commit

Permalink
Merge pull request #104 from netgen/bugfix/video-tag-controls-option
Browse files Browse the repository at this point in the history
Check if format is an array before checking for control options
  • Loading branch information
iherak authored May 29, 2023
2 parents c069c4b + 3b9c7aa commit 61615a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function generateVideoTag(Value $value, $contentTypeIdentifier, $format =
'poster' => $transformationOptions,
];

if (!array_key_exists('controls', $format) || $format['controls']) {
if (!is_array($format) || !array_key_exists('controls', $format) || $format['controls']) {
$finalOptions['controls'] = true;
}

Expand Down

0 comments on commit 61615a8

Please sign in to comment.