Correction to negative tag code

This commit is contained in:
Matthew Barbour 2019-06-26 23:06:25 -05:00 committed by Shish
parent 4136b1bb6b
commit f5a5352511

View File

@ -1048,7 +1048,7 @@ class Image
$sql = " $sql = "
SELECT images.* SELECT images.*
FROM images LEFT JOIN image_tags negative ON negative.image_id = images.id AND negative.tag_id in ($negative_tag_id_list) FROM images LEFT JOIN image_tags negative ON negative.image_id = images.id AND negative.tag_id in ($negative_tag_id_list)
WHERE a.image_id IS NULL WHERE negative.image_id IS NULL
"; ";
} else { } else {
throw new SCoreException("No criteria specified"); throw new SCoreException("No criteria specified");