From 3d0a7a33ad0c1bbc16ef6156609110e14b6e0ee6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 6 Dec 2009 20:38:57 -0800 Subject: Fix a few more database queries --- modules/tag/models/tag.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/tag/models') diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index b60f8dfc..f6cc6144 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -82,7 +82,9 @@ class Tag_Model extends ORM { } if ($related_item_ids) { - foreach (ORM::factory("item")->in("id", array_keys($related_item_ids))->find_all() as $item) { + foreach (ORM::factory("item") + ->where("id", "IN", array_keys($related_item_ids)) + ->find_all() as $item) { module::event("item_related_update", $item); } } -- cgit v1.2.3