Skip to content

Commit

Permalink
Update Video.php (#15546)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaantony92 committed Jul 19, 2023
1 parent d75888a commit e6d716e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/Asset/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function clearThumbnails($force = false)
/**
* @internal
*
* @param string|Video\Thumbnail\Config $config
* @param null|string|Video\Thumbnail\Config $config
*
* @return Video\Thumbnail\Config|null
*
Expand Down
2 changes: 1 addition & 1 deletion models/Document/Editable/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ private function getHtml5Code($urls = [], $thumbnail = null)
$attributesString .= ' ' . $key;
if (!empty($value)) {
$quoteChar = '"';
if (strpos($value, '"')) {
if (is_string($value) && strpos($value, '"')) {
$quoteChar = "'";
}
$attributesString .= '=' . $quoteChar . $value . $quoteChar;
Expand Down

0 comments on commit e6d716e

Please sign in to comment.