Added another lower() to a tag lookup

This commit is contained in:
Matthew Barbour 2019-10-10 10:39:42 -05:00 committed by Shish
parent 0a30ec6cfa
commit 9139bbfd01

View File

@ -730,9 +730,9 @@ class Image
"INSERT INTO tags(tag) VALUES (:tag)",
["tag"=>$tag]
);
$database->execute(
$database->execute($database->scoreql_to_sql(
"INSERT INTO image_tags(image_id, tag_id)
VALUES(:id, (SELECT id FROM tags WHERE tag = :tag))",
VALUES(:id, (SELECT id FROM tags WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(:tag)))"),
["id"=>$this->id, "tag"=>$tag]
);
} else {