Pre-release: again the function to limit the announcements by age: let's depend it on "topic_time", not "topic_last_post_time". makes more sense to me...
This commit is contained in:
@@ -77,7 +77,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
|
||||
|
||||
$posts = array();
|
||||
|
||||
$post_time = ($time == 0) ? '' : 'AND t.topic_last_post_time > ' . (time() - $time * 86400);
|
||||
$post_time = ($time == 0) ? '' : 'AND t.topic_time > ' . (time() - $time * 86400);
|
||||
|
||||
$forum_from = ( strpos($forum_from, ',') !== FALSE ) ? explode(',', $forum_from) : (($forum_from != '') ? array($forum_from) : array());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user