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:
Paul S. Owen 2001-10-10 10:45:54 +00:00
parent dfb252e252
commit 36f4f7eaac

View file

@ -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); 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 else
{ {