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

#941170 reported by pmp6nl: More robust checks to avoid trying to look up a null property.

parent d8ed486c
No related branches found
No related tags found
No related merge requests found
...@@ -196,8 +196,8 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -196,8 +196,8 @@ class gmap_plugin_style_gmap extends views_plugin_style {
} }
$tooltip = ""; $tooltip = "";
if ($this->options['tooltipenabled'] && $row->$tooltip_field) { if ($this->options['tooltipenabled'] && !empty($tooltip_field) && !empty($row->{$tooltip_field})) {
$tooltip = $row->$tooltip_field; $tooltip = $row->{$tooltip_field};
} }
$marker = array( $marker = array(
......
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