We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7b7ec commit 6187eefCopy full SHA for 6187eef
app/Helpers/video_helper.php
@@ -37,7 +37,7 @@ function embedVideo(string $code, string $width = '640', string $height = '385')
37
$code = $result['v'] ?? null;
38
}
39
40
- if (isset($code) && ! empty($code)) {
+ if (isset($code) && ($code !== '' && $code !== '0' && $code !== [])) {
41
return '
42
<iframe width="' . $width . '" height="' . $height . '"
43
src="https://www.youtube.com/embed/' . $code . '" frameborder="0"
0 commit comments