Skip to content

Commit

Permalink
Change ->in(...) ->where('id', 'in', ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Almdal committed Dec 27, 2009
1 parent 55f9408 commit 31bb09c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/tag/models/tag.php
Expand Up @@ -108,7 +108,9 @@ public function delete() {
$result = parent::delete();

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);
}
}
Expand Down

0 comments on commit 31bb09c

Please sign in to comment.