diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 4483a2c2..55842143 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -591,7 +591,7 @@ class Image { // various types of querylet foreach($terms as $term) { $positive = true; - if($term[0] == '-') { + if(strlen($term) > 0 && $term[0] == '-') { $positive = false; $term = substr($term, 1); }