fix tagging, oops lol
This commit is contained in:
parent
79ba217da2
commit
75be84f895
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ if (isset($_GET['q']) && preg_replace('/\s+/', '', $_GET['q']) != '') {
|
|||
|
||||
$sql = 'SELECT * FROM indexed WHERE 1=1';
|
||||
|
||||
$terms = explode(' ', preg_replace('/\s+/', '', $_GET['q']));
|
||||
$terms = explode(' ', trim(preg_replace('/\s+/', ' ', $_GET['q'])));
|
||||
$params = array();
|
||||
foreach ($terms as $term) {
|
||||
if (substr($term, 0, 1) == '-') {
|
||||
|
|
Loading…
Reference in a new issue