mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Issue #4578 - possible fix for editing issue.
This commit is contained in:
@@ -1463,7 +1463,7 @@ class forum_post_handler
|
|||||||
|
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
|
|
||||||
if (empty($_POST['subject']) || empty($_POST['post']))
|
if ((isset($_POST['subject']) && empty($_POST['subject'])) || empty($_POST['post']))
|
||||||
{
|
{
|
||||||
$mes->addError(LAN_FORUM_3007);
|
$mes->addError(LAN_FORUM_3007);
|
||||||
return;
|
return;
|
||||||
@@ -1507,7 +1507,11 @@ class forum_post_handler
|
|||||||
$postVals['post_edit_user'] = USERID;
|
$postVals['post_edit_user'] = USERID;
|
||||||
$postVals['post_entry'] = $_POST['post'];
|
$postVals['post_entry'] = $_POST['post'];
|
||||||
|
|
||||||
|
if(!empty($_POST['subject']))
|
||||||
|
{
|
||||||
$threadVals['thread_name'] = $_POST['subject'];
|
$threadVals['thread_name'] = $_POST['subject'];
|
||||||
|
}
|
||||||
|
|
||||||
$threadVals['thread_sticky'] = (MODERATOR ? (int)$_POST['threadtype'] : 0);
|
$threadVals['thread_sticky'] = (MODERATOR ? (int)$_POST['threadtype'] : 0);
|
||||||
|
|
||||||
$this->forumObj->threadUpdate($this->data['post_thread'], $threadVals);
|
$this->forumObj->threadUpdate($this->data['post_thread'], $threadVals);
|
||||||
|
Reference in New Issue
Block a user