diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 21:14:54 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 21:14:54 -0800 |
commit | 96b00d6cfe437e376d5547a10aa8d1cf7def8c13 (patch) | |
tree | 355f3df10c86f595e1373a53a0746b877b27489b /modules/comment | |
parent | b9a0e0963746420d82ad3107135aa7a9256825be (diff) |
Convert some more Database::instance() calls to db::build() form.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/helpers/comment_event.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php index cf5d0a60..c90f7663 100644 --- a/modules/comment/helpers/comment_event.php +++ b/modules/comment/helpers/comment_event.php @@ -62,12 +62,11 @@ class comment_event_Core { } static function item_index_data($item, $data) { - foreach (Database::instance() + foreach (db::build() ->select("text") ->from("comments") ->where("item_id", "=", $item->id) - ->get() - ->as_array() as $row) { + ->execute() as $row) { $data[] = $row->text; } } |