diff --git a/video_embed_field.handlers.inc b/video_embed_field.handlers.inc index 1962008..e87c8a2 100644 --- a/video_embed_field.handlers.inc +++ b/video_embed_field.handlers.inc @@ -190,7 +190,7 @@ function video_embed_field_handle_youtube($url, $settings) { } // Add class to variable to avoid adding it to URL param string. - $class = $settings['class']; + $class = isset($settings['class']) ? $settings['class'] : ''; unset($settings['class']); // Construct the embed code. @@ -516,7 +516,7 @@ function video_embed_field_handle_vimeo($url, $settings) { unset($settings['froogaloop']); // Add class to variable to avoid adding it to URL param string. - $class = $settings['class']; + $class = isset($settings['class']) ? $settings['class'] : ''; unset($settings['class']); $settings_str = _video_embed_code_get_settings_str($settings);