Merge pull request #64 from ModernArtisan/fix-search-query-with-quotes

Removed unnecessary second substr call
This commit is contained in:
Tom
2016-12-21 21:36:15 +11:00
committed by GitHub

View File

@ -72,7 +72,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface
*/
public function query($searchString)
{
$this->searchString = substr(substr(\DB::connection()->getPdo()->quote($searchString), 1), 0, -1);
$this->searchString = substr(\DB::connection()->getPdo()->quote($searchString), 1, -1);
return $this;
}