Quellcode durchsuchen

Small fix to chado_views_handler_filter_select_string to ensure is always an array

Lacey Sanderson vor 12 Jahren
Ursprung
Commit
095c463bbe

+ 2 - 2
tripal_views/views/handlers/chado_views_handler_filter_select_string.inc

@@ -74,9 +74,9 @@ class chado_views_handler_filter_select_string extends chado_views_handler_filte
       // using fields that are not exposed and that are for the table
       // from whcih the values in the drop box will be slected and
       // we only want to use non-exposed fields because these are not
-      // available to the user to edit--their fixed.
+      // available to the user to edit--they're fixed.
       $where = '';
-      $filters = ($this->view->filter) ? $this->view->filter : array();
+      $filters = (is_array($this->view->filter)) ? $this->view->filter : array();
       foreach ($filters as $filter_name => $details) {
          // we only want to inclue non-exposed filters
          if ($details->options['exposed'] == FALSE) {