summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsandipshirsale2016-10-03 19:37:14 (GMT)
committerjoseph.olstad2016-10-03 19:37:14 (GMT)
commit38f300947f91677457ed47875f9038548b9bfd2b (patch)
treece529ffe1ecbc798612bc7d34df7a86ed12c4aa0
parente5b08051d01a615b091fd6899dad4ab51759eb28 (diff)
Issue #2749493 by sandipshirsale: Undefined index: HTTP_USER_AGENT in lightbox2_add_files()7.x-2.9
-rw-r--r--lightbox2.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 3d367a7..ea5643e 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -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'), '/')));