minus on its own was being turned into 'negative null-tag', which confused things

This commit is contained in:
Shish 2012-01-26 17:16:06 +00:00
parent 717024d464
commit 4530efc1e0

View File

@ -591,10 +591,13 @@ class Image {
// various types of querylet // various types of querylet
foreach($terms as $term) { foreach($terms as $term) {
$positive = true; $positive = true;
if((strlen($term) > 0) && ($term[0] == '-')) { if($term[0] == '-') {
$positive = false; $positive = false;
$term = substr($term, 1); $term = substr($term, 1);
} }
if(strlen($term) == 0) {
continue;
}
$term = Tag::resolve_alias($term); $term = Tag::resolve_alias($term);