Commit 38f30094 authored by sandipshirsale's avatar sandipshirsale Committed by joseph.olstad

Issue #2749493 by sandipshirsale: Undefined index: HTTP_USER_AGENT in lightbox2_add_files()

parent e5b08051
......@@ -749,7 +749,7 @@ function lightbox2_add_files() {
'iframe_border' => (int)variable_get('lightbox2_frame_border', 1),
// Video settings.
'enable_video' => $enable_video,
'useragent' => $_SERVER['HTTP_USER_AGENT'],
'useragent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
);
if ($enable_video) {
$js_settings['flvPlayer'] = url(check_plain(trim(variable_get('lightbox2_flv_player_path', 'flvplayer.swf'), '/')));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment