Fix auto_tagger issue with incorrect data type, expected int

This commit is contained in:
flatanon 2021-12-18 16:22:40 -06:00 committed by Shish
parent 9c05622d6e
commit 3b53ddbbc7

View file

@ -269,6 +269,7 @@ class AutoTagger extends Extension
if (!empty($tag_id)) {
$image_ids = $database->get_col_iterable("SELECT image_id FROM image_tags WHERE tag_id = :tag_id", ["tag_id"=>$tag_id]);
foreach ($image_ids as $image_id) {
$image_id = (int)$image_id;
$image = Image::by_id($image_id);
$event = new TagSetEvent($image, $image->get_tag_array());
send_event($event);