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:
@@ -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;
|
||||
|
@@ -511,7 +511,7 @@ else
|
||||
function isAuthor()
|
||||
{
|
||||
global $postInfo;
|
||||
return ((USERID === $postInfo['post_user']) || MODERATOR);
|
||||
return ((USERID === (int)$postInfo['post_user']) || MODERATOR);
|
||||
}
|
||||
|
||||
function forumjump()
|
||||
|
Reference in New Issue
Block a user