Commit 3f8787fa authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1587474: No indents forum reply fails when the last post has been deleted"

parents b4832aee f9cef9d8
......@@ -123,7 +123,7 @@ $posts = get_records_sql_array(
// This is only needed for the 'no_indent' option
$lastpostid = null;
if ($indentmode == 'no_indent') {
$lastpost = get_record_select('interaction_forum_post', 'topic = ? ORDER by ctime DESC, id DESC LIMIT 1', array($topicid));
$lastpost = get_record_select('interaction_forum_post', 'topic = ? AND deleted != 1 ORDER by ctime DESC, id DESC LIMIT 1', array($topicid));
$lastpostid = $lastpost->id;
}
// Get extra info of posts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment