Changeset 1760
- Timestamp:
- 10/13/07 00:24:05 (12 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/search.php
r1684 r1760 96 96 $match = ($this->matchMode == QUERY_MATCH_AND || $this->matchMode == QUERY_MATCH_EXACT); 97 97 foreach ($this->searchTerms as $term) { 98 if ($this->matchMode == QUERY_MATCH_AND || $this->matchMode == QUERY_MATCH_EXACT) {98 if ($this->matchMode == QUERY_MATCH_AND) { 99 99 $match = ((stristr($descr_noTags, $term) || stristr($title_noTags, $term)) && $match); 100 } else if ($this->matchMode == QUERY_MATCH_EXACT) { 101 $match = (preg_match("/\b" . $term . "\b/i", $descr_noTags) || preg_match("/\b" . $term . "\b/i", $title_noTags)); 100 102 } else { 101 103 $match = ($match || (stristr($descr_noTags, $term) || stristr($title_noTags, $term)));
