Browse Source

Small fix to tripal_views_handler_filter_select_string to ensure that #options is at least an empty array

Lacey Sanderson 12 years ago
parent
commit
5e5c1245a4

+ 1 - 0
tripal_views/views/handlers/tripal_views_handler_filter_select_string.inc

@@ -101,6 +101,7 @@ class tripal_views_handler_filter_select_string extends chado_views_handler_filt
       if (!$max_length) {
         $max_length = 40;
       }
+      $options = array();
       if ($this->options['optional']) {
         //$options['<select '.$this->table.'>'] = '--None--';
         $options['All'] = '--Any--';