Skip to content
Snippets Groups Projects
Commit b3053e43 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

@bec: This was causing warnings on pages with markerless maps (like the settings page.)

parent d3e7e422
No related branches found
No related tags found
No related merge requests found
......@@ -871,8 +871,11 @@ function theme_gmap($element) {
gmap_map_cleanup($map);
// Add a class around map bubble contents.
foreach ($map['markers'] as $i => $marker) {
$map['markers'][$i]['text'] = '<div class="gmap-popup">' . $marker['text'] . '</div>';
// @@@ Bdragon sez: Becw, this doesn't belong here. Theming needs to get fixed instead..
if (isset($map['markers'])) {
foreach ($map['markers'] as $i => $marker) {
$map['markers'][$i]['text'] = '<div class="gmap-popup">' . $marker['text'] . '</div>';
}
}
switch (strtolower($map['align'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment