summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-29 22:59:44 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-29 22:59:44 +0000
commitf5136051c902f88f9800697d48b35e2e908a5c22 (patch)
tree0908573849c54a8775dd02e7e20bdf2ce52de666
parent6ab195854ddee124b24b880ed96bb0db5fdc7805 (diff)
Filter on published in Comment_Controller::_index()
-rw-r--r--modules/comment/controllers/comments.php1
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();