includes/search.php
changeset 499 6b7fdd898ba3
parent 461 717e71109645
child 507 586fd7d3202d
--- a/includes/search.php	Tue Mar 11 17:09:20 2008 -0400
+++ b/includes/search.php	Sat Mar 15 00:08:01 2008 -0400
@@ -110,7 +110,7 @@
  *   page_text: string, the contents of the page (trimmed to ~150 bytes if necessary)
  *   score: numerical relevance score, 1-100, rounded to 2 digits and calculated based on which terms were present and which were not
  * @param string Search query
- * @param string Will be filled with any warnings encountered whilst parsing the query
+ * @param string|reference Will be filled with any warnings encountered whilst parsing the query
  * @param bool Case sensitivity - defaults to false
  * @param array|reference Will be filled with the parsed list of words.
  * @return array
@@ -197,7 +197,7 @@
       $where_any[] = $term;
     }
 
-    $col_word = ( $case_sensitive ) ? 'word' : ENANO_SQLFUNC_LOWERCASE . '(word)';
+    $col_word = ( $case_sensitive ) ? 'word' : 'word_lcase';
     $where_any = ( count($where_any) > 0 ) ? '( ' . $col_word . ' = \'' . implode('\' OR ' . $col_word . ' = \'', $where_any) . '\' )' : '';
 
     // generate query