Kaynağa Gözat

Needed to add a default op for pub searches if only one criteria provided

Stephen Ficklin 11 yıl önce
ebeveyn
işleme
6eb24b827c
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      tripal_pub/includes/pub_search.inc

+ 3 - 0
tripal_pub/includes/pub_search.inc

@@ -441,6 +441,9 @@ function tripal_pub_get_search_results($search_array, $limit, $pager_id) {
     if ($op == 'NOT') {
       $op = 'AND NOT';
     }
+    if (!$op) {
+      $op = 'AND';
+    }
     
     $action = "= lower('%s')";
     if($mode == 'Contains') {