mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed bug with deleting only post in forum
git-svn-id: file:///svn/phpbb/trunk@1148 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dfb252e252
commit
36f4f7eaac
1 changed files with 3 additions and 1 deletions
|
@ -1124,7 +1124,9 @@ if( ( $submit || $confirm ) && !$error )
|
|||
message_die(GENERAL_ERROR, "Couldn't obtain new last post id for the forum", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
$new_last_sql = ", forum_last_post_id = " . $row['new_post_id'];
|
||||
$last_post_id_forum = ( !empty($row['new_post_id']) ) ? $row['new_post_id'] : 0;
|
||||
|
||||
$new_last_sql = ", forum_last_post_id = " . $last_post_id_forum;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue