diff --git a/views/webform.views.inc b/views/webform.views.inc
index 3b84c8d..51e9b4c 100644
--- a/views/webform.views.inc
+++ b/views/webform.views.inc
@@ -511,7 +511,13 @@ function webform_views_pre_view($view, $display_id, $args) {
         'separator' => '',
         'empty_column' => 0,
       );
-      $style_options['info'] += array_combine($new_columns, array_fill(1, count($new_columns), $style_prototype));
+
+      if (!count($new_columns)) {
+        drupal_set_message(t('There are no columns to display.'));
+      }
+      else {
+        $style_options['info'] += array_combine($new_columns, array_fill(1, count($new_columns), $style_prototype));
+      }
       
       //
       //$key_index = array_flip(array_keys($columns));
