Skip to content

Commit

Permalink
Merge pull request #64 from ModernArtisan/fix-search-query-with-quotes
Browse files Browse the repository at this point in the history
Removed unnecessary second substr call
  • Loading branch information
TomLingham authored Dec 21, 2016
2 parents f2e74e4 + 04b2e27 commit 92feab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchDrivers/BaseSearchDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function select()
*/
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;
}
Expand Down

0 comments on commit 92feab6

Please sign in to comment.