From 4530efc1e0254f0f53d4682c2a16104ce9441c2c Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Jan 2012 17:16:06 +0000 Subject: [PATCH] minus on its own was being turned into 'negative null-tag', which confused things --- core/imageboard.pack.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 7030277e..4483a2c2 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -591,10 +591,13 @@ class Image { // various types of querylet foreach($terms as $term) { $positive = true; - if((strlen($term) > 0) && ($term[0] == '-')) { + if($term[0] == '-') { $positive = false; $term = substr($term, 1); } + if(strlen($term) == 0) { + continue; + } $term = Tag::resolve_alias($term);