Changeset 1742
- Timestamp:
- 05/26/10 15:29:44 (3 years ago)
- File:
-
- 1 edited
-
branches/1.3/libs/Comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/libs/Comment.php
r1738 r1742 146 146 function readAllChildren($h, $parent) 147 147 { 148 $sql = "SELECT * FROM " . TABLE_COMMENTS . " WHERE comment_parent = %d AND comment_status = %s ORDER BY comment_date"; 148 $fields = "comment_id, comment_post_id, comment_user_id, comment_parent, comment_date, comment_status, comment_content, comment_votes_up, comment_votes_down, comment_subscribe"; 149 150 $sql = "SELECT " . $fields . " FROM " . TABLE_COMMENTS . " WHERE comment_parent = %d AND comment_status = %s ORDER BY comment_date"; 149 151 $query = $h->db->prepare($sql, $parent, 'approved'); 150 152
Note: See TracChangeset
for help on using the changeset viewer.