Permalink
Browse files

This should make individual forum posts in digests be sorted in ascen…

…ding postid

(and thus, chronological) order. Strange thing is, it looks like being sorted as it is!
  • Loading branch information...
1 parent 12ad5d0 commit e1c6dde15007d545164b6c8430191920def6c1be defacer committed Jul 20, 2004
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/forum/lib.php
View
@@ -415,7 +415,10 @@ function forum_cron () {
}
$posthtml .= '<p>';
- foreach($discussionposts[$discussionid] as $postid) {
+ $postsarray = $discussionposts[$discussionid];
+ sort($postsarray);
+
+ foreach($postsarray as $postid) {
if (! $post = get_record("forum_posts", "id", "$postid")) {
echo "Could not find post $postid\n";
continue;

0 comments on commit e1c6dde

Please sign in to comment.