Browse Source

Removed unnecessary second substr call

master
Vyacheslav Basenko 8 years ago
parent
commit
04b2e278dd
  1. 2
      src/SearchDrivers/BaseSearchDriver.php

2
src/SearchDrivers/BaseSearchDriver.php

@ -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;
}

Loading…
Cancel
Save