Index: trunk/phase3/includes/SearchPostgres.php |
— | — | @@ -83,7 +83,8 @@ |
84 | 84 | else { |
85 | 85 | $searchstring .= " & $terms[2]"; |
86 | 86 | $safeterm = preg_replace('/\W+/', '', $terms[2]); |
87 | | - $this->searchTerms[$safeterm] = $safeterm; |
| 87 | + if (strlen($safeterm)) |
| 88 | + $this->searchTerms[$safeterm] = $safeterm; |
88 | 89 | } |
89 | 90 | } |
90 | 91 | } |