diff -r a85af9c28355 -r 6b7fdd898ba3 includes/search.php --- 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