diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-29 22:59:44 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-29 22:59:44 +0000 |
commit | f5136051c902f88f9800697d48b35e2e908a5c22 (patch) | |
tree | 0908573849c54a8775dd02e7e20bdf2ce52de666 | |
parent | 6ab195854ddee124b24b880ed96bb0db5fdc7805 (diff) |
Filter on published in Comment_Controller::_index()
-rw-r--r-- | modules/comment/controllers/comments.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index e4eff6a6..fcef1832 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -30,6 +30,7 @@ class Comments_Controller extends REST_Controller { $comments = ORM::factory("comment") ->where("item_id", $item->id) + ->where("published", 1) ->orderby("created", "desc") ->find_all(); |