1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Post replies are now incremented properly, editing of posts now working.

This commit is contained in:
mcfly
2010-06-21 01:27:26 +00:00
parent 207cc543fc
commit 1adf1d6179
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -511,7 +511,7 @@ else
function isAuthor()
{
global $postInfo;
return ((USERID === $postInfo['post_user']) || MODERATOR);
return ((USERID === (int)$postInfo['post_user']) || MODERATOR);
}
function forumjump()