diff --git a/modules/openlayers_views/views/openlayers_views_style_map.inc b/modules/openlayers_views/views/openlayers_views_style_map.inc index 3b435b4..cf093a8 100644 --- a/modules/openlayers_views/views/openlayers_views_style_map.inc +++ b/modules/openlayers_views/views/openlayers_views_style_map.inc @@ -47,9 +47,7 @@ class openlayers_views_style_map extends views_plugin_style { * Query - override to make sure this doesn't get run */ function query() { - if (isset($this->view->query->fields)) { - $this->view->query->fields = array(); - } + $this->view->query->fields = array(); $this->view->executed = TRUE; }