1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fixes #1433 - Forum Attachments/Image data would become corrupted while editing.

This commit is contained in:
Cameron
2016-03-20 18:32:35 -07:00
parent 789e701ff1
commit bda0d9d2a3
4 changed files with 41 additions and 16 deletions

View File

@@ -743,7 +743,12 @@ class e107forum
{
e107::getEvent()->trigger('user_forum_topic_created', $info);
$postInfo['post_thread'] = $newThreadId;
$newPostId = $this->postAdd($postInfo, false);
if(!$newPostId = $this->postAdd($postInfo, false))
{
e107::getMessage()->addDebug("There was a problem: ".print_a($postInfo,true));
}
$this->threadMarkAsRead($newThreadId);
$threadInfo['thread_sef'] = $this->getThreadsef($threadInfo);
@@ -931,7 +936,7 @@ class e107forum
}
else
{
e107::getMessage()->addDebug("Query Failed: ".$qry);
e107::getMessage()->addDebug('Query failed ('.__METHOD__.' ): '.str_replace('#', MPREFIX,$qry));
}
if('post' === $start) { return $ret[0]; }