1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 12:05:37 +02: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:
gpolins 2001-08-17 22:51:56 +00:00
parent ea1f0debe6
commit 9b12f772cf

View File

@ -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))