diff options
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)) |