mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fixed bug in updating forum last post in sync
git-svn-id: file:///svn/phpbb/trunk@901 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ea1f0debe6
commit
9b12f772cf
1 changed files with 4 additions and 0 deletions
|
@ -535,6 +535,10 @@ function sync($type, $id)
|
|||
{
|
||||
$last_post = $rowset[0]['last_post'];
|
||||
}
|
||||
if($last_post == "")
|
||||
{
|
||||
$last_post = 0;
|
||||
}
|
||||
|
||||
$sql = "SELECT count(post_id) AS total FROM ".POSTS_TABLE." WHERE forum_id = $id";
|
||||
if(!$result = $db->sql_query($sql))
|
||||
|
|
Loading…
Add table
Reference in a new issue