Skip to content

Commit 6187eef

Browse files
committed
rector fix
1 parent 4f7b7ec commit 6187eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Helpers/video_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function embedVideo(string $code, string $width = '640', string $height = '385')
3737
$code = $result['v'] ?? null;
3838
}
3939

40-
if (isset($code) && ! empty($code)) {
40+
if (isset($code) && ($code !== '' && $code !== '0' && $code !== [])) {
4141
return '
4242
<iframe width="' . $width . '" height="' . $height . '"
4343
src="https://www.youtube.com/embed/' . $code . '" frameborder="0"

0 commit comments

Comments
 (0)