diff --git a/themes/media_youtube.theme.inc b/themes/media_youtube.theme.inc index 0d520e9..713607b 100644 --- a/themes/media_youtube.theme.inc +++ b/themes/media_youtube.theme.inc @@ -29,7 +29,7 @@ function media_youtube_preprocess_media_youtube_video(&$variables) { // These queries default to 0. If the option is true, set value to 1. foreach (array('autoplay', 'enablejsapi', 'loop', 'modestbranding') as $option) { - if (isset($variables['options'][$option])) { + if (isset($variables['options'][$option]) && $variables['options'][$option]) { $query[$option] = 1; } }