diff --git a/qanda.php b/qanda.php index 8838b9a2580..9c9f184ced8 100644 --- a/qanda.php +++ b/qanda.php @@ -4836,7 +4836,7 @@ function textLimit(field, maxlen) { class=\"mapservice\" value = \"{$qidattributes['location_mapservice']}\" >
"; - if ($qidattributes['location_mapservice']==1 && $_SERVER['HTTPS'] == "on") + if ($qidattributes['location_mapservice']==1 && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off") $js_header_includes[] = "https://maps.googleapis.com/maps/api/js?sensor=false"; else if ($qidattributes['location_mapservice']==1) $js_header_includes[] = "http://maps.googleapis.com/maps/api/js?sensor=false";