term can be empty to start with >_<

This commit is contained in:
Shish 2012-01-26 17:56:48 +00:00
parent ae56e591e9
commit 96b8253b38

View File

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