Skip to content

Commit 61615a8

Browse files
authored
Merge pull request #104 from netgen/bugfix/video-tag-controls-option
Check if format is an array before checking for control options
2 parents c069c4b + 3b9c7aa commit 61615a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bundle/RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function generateVideoTag(Value $value, $contentTypeIdentifier, $format =
323323
'poster' => $transformationOptions,
324324
];
325325

326-
if (!array_key_exists('controls', $format) || $format['controls']) {
326+
if (!is_array($format) || !array_key_exists('controls', $format) || $format['controls']) {
327327
$finalOptions['controls'] = true;
328328
}
329329

0 commit comments

Comments
 (0)