--- modules/openlayers_views/views/openlayers_views_style_data.inc.orig	2011-02-02 18:10:39.000000000 +0100
+++ modules/openlayers_views/views/openlayers_views_style_data.inc	2011-02-02 18:12:07.000000000 +0100
@@ -393,7 +393,7 @@ class openlayers_views_style_data extend
         // as choosen through interface
         $name_field = NULL;
         $description_field = NULL;
-        if ($data_source['name_field']) {
+        if (is_array($data_source) && $data_source['name_field']) {
           $name_field = $fields[$data_source['name_field']]['field_alias'];
           $feature['attributes']['name'] = $rendered_record[$name_field];
           $excluded_fields[] = $name_field;
@@ -404,7 +404,7 @@ class openlayers_views_style_data extend
         else {
           $feature['attributes']['name'] = '';
         }
-        if ($data_source['description_field']) {
+        if (is_array($data_source) && $data_source['description_field']) {
           $description_field = $fields[$data_source['description_field']]['field_alias'];
           $feature['attributes']['description'] = $rendered_record[$description_field];
           $excluded_fields[] = $description_field;
