diff --git a/fuel/modules/fuel/helpers/google_helper.php b/fuel/modules/fuel/helpers/google_helper.php index 76bb56420..f66ffb1f1 100644 --- a/fuel/modules/fuel/helpers/google_helper.php +++ b/fuel/modules/fuel/helpers/google_helper.php @@ -327,7 +327,7 @@ function google_map_url($address, $params = array()) // set output $p['output'] = 'embed'; - $url = 'http://maps.google.com/maps?'.http_build_query($p, '', '&'); + $url = (is_https() ? 'https': 'http' ). '://maps.google.com/maps?'.http_build_query($p, '', '&'); $query_str = http_build_query($p, '', '&'); return $url; }