浏览代码

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

Lacey Sanderson 12 年之前
父节点
当前提交
5e5c1245a4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tripal_views/views/handlers/tripal_views_handler_filter_select_string.inc

+ 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--';