From 9b12f772cf176fd5e7e0d481fea266161b0437bf Mon Sep 17 00:00:00 2001 From: gpolins Date: Fri, 17 Aug 2001 22:51:56 +0000 Subject: [PATCH] Fixed bug in updating forum last post in sync git-svn-id: file:///svn/phpbb/trunk@901 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 0912a24207..1b65481e8e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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))