diff options
author | gpolins <gpolins@users.sourceforge.net> | 2001-08-17 22:51:56 +0000 |
---|---|---|
committer | gpolins <gpolins@users.sourceforge.net> | 2001-08-17 22:51:56 +0000 |
commit | 9b12f772cf176fd5e7e0d481fea266161b0437bf (patch) | |
tree | 1cbb4db1f474825a39a21e50fcb0860867f00f36 /phpBB/includes/functions.php | |
parent | ea1f0debe652e633a7681220883d368df662db28 (diff) | |
download | forums-9b12f772cf176fd5e7e0d481fea266161b0437bf.tar forums-9b12f772cf176fd5e7e0d481fea266161b0437bf.tar.gz forums-9b12f772cf176fd5e7e0d481fea266161b0437bf.tar.bz2 forums-9b12f772cf176fd5e7e0d481fea266161b0437bf.tar.xz forums-9b12f772cf176fd5e7e0d481fea266161b0437bf.zip |
Fixed bug in updating forum last post in sync
git-svn-id: file:///svn/phpbb/trunk@901 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |