From 58cca2dfeb7cd882258098c5f920c1a01c27e2b1 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Fri, 5 Jun 2009 04:37:45 +0000 Subject: [PATCH] BUGFIX fixing the build, making the code happier --- code/MSSQLDatabase.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index d041770..6ea6d41 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -1111,10 +1111,8 @@ class MSSQLDatabase extends Database { * * @param string $keywords Keywords as a string. */ - public function searchEngine($keywords, $pageLength = null, $sortBy = "Relevance DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false) { - if($this->fullTextEnabled) { - $start = isset($_GET['start']) ? (int)$_GET['start'] : 0; - + public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $sortBy = "Relevance DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false) { + if($this->fullTextEnabled) { //Get a list of all the tables and columns we'll be searching on: $result=DB::query('EXEC sp_help_fulltext_columns'); if (!$result->numRecords()) throw Exception('there are no full text columns to search');