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()