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

Hopefully fix #371134: warning: Invalid argument supplied for...

Hopefully fix #371134: warning: Invalid argument supplied for foreach()...gmap_plugin_style_gmap.inc on line 172.
parent dc5ba86e
No related branches found
No related tags found
No related merge requests found
......@@ -167,11 +167,10 @@ class gmap_plugin_style_gmap extends views_plugin_style {
);
$options = array();
// @@@ Fix this when I'm not having a monday morning.
// There's likely a more "correct" way.
foreach ($this->display->display_options['fields'] as $id => $handler) {
$data = views_fetch_data($handler['table']);
$options[$id] = $handler['label'];
$fields = $this->display->handler->get_handlers('field');
foreach ($fields as $id => $handler) {
$options[$id] = $handler->ui_name(FALSE);
}
$form['latfield'] = 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