fix tagging, oops lol

This commit is contained in:
xfnw 2020-12-14 22:07:22 -05:00
parent 79ba217da2
commit 75be84f895

View file

@ -28,7 +28,7 @@ if (isset($_GET['q']) && preg_replace('/\s+/', '', $_GET['q']) != '') {
$sql = 'SELECT * FROM indexed WHERE 1=1'; $sql = 'SELECT * FROM indexed WHERE 1=1';
$terms = explode(' ', preg_replace('/\s+/', '', $_GET['q'])); $terms = explode(' ', trim(preg_replace('/\s+/', ' ', $_GET['q'])));
$params = array(); $params = array();
foreach ($terms as $term) { foreach ($terms as $term) {
if (substr($term, 0, 1) == '-') { if (substr($term, 0, 1) == '-') {