From 1adf1d6179bf60af0322ae7d70c28219c966fe3a Mon Sep 17 00:00:00 2001 From: mcfly Date: Mon, 21 Jun 2010 01:27:26 +0000 Subject: [PATCH] Post replies are now incremented properly, editing of posts now working. --- e107_plugins/forum/forum_class.php | 4 ++-- e107_plugins/forum/forum_post.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index 86f21c009..7b1ed5544 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -211,7 +211,7 @@ class e107forum $info['data'] = $threadInfo; $info['WHERE'] = 'thread_id = '.$postInfo['post_thread']; // $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread']; -// $info['_FIELD_TYPES']['thread_total_replies'] = 'cmd'; + $info['_FIELD_TYPES']['thread_total_replies'] = 'cmd'; $result = $e107->sql->db_Update('forum_thread', $info); @@ -378,7 +378,7 @@ class e107forum return false; } - function postGet($id, $start, $num) + function postGet($id, $start, $num = NULL) { $id = (int)$id; $ret = false; diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index 3befe846a..3b939c595 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -511,7 +511,7 @@ else function isAuthor() { global $postInfo; - return ((USERID === $postInfo['post_user']) || MODERATOR); + return ((USERID === (int)$postInfo['post_user']) || MODERATOR); } function forumjump()