diff --git a/fts.php b/fts.php index 784fc57..17a040c 100644 --- a/fts.php +++ b/fts.php @@ -76,6 +76,8 @@ class fts public function searchSQL ($query, $dblayeroo, $fields) { $regexes = $this->search ($query); + if (empty ($regexes["operator"])) + return array (); // Clone the object to not modify a previously defined query $dbl = clone $dblayeroo; $dbl->clearRequest ();