Added another lower() to a tag lookup
This commit is contained in:
parent
0a30ec6cfa
commit
9139bbfd01
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user