mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Minor change to cope with a now fixed (I think) situation where last_post_id was set to 0 ... would leave these topics and posts in place during prune
git-svn-id: file:///svn/phpbb/trunk@2478 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7012f5168f
commit
d2d4a073c9
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ function prune($forum_id, $prune_date)
|
||||||
WHERE t.forum_id = $forum_id
|
WHERE t.forum_id = $forum_id
|
||||||
AND t.topic_vote = 0
|
AND t.topic_vote = 0
|
||||||
AND t.topic_type <> " . POST_ANNOUNCE . "
|
AND t.topic_type <> " . POST_ANNOUNCE . "
|
||||||
AND p.post_id = t.topic_last_post_id";
|
AND ( p.post_id = t.topic_last_post_id
|
||||||
|
OR t.topic_last_post_id = 0 )";
|
||||||
if ( $prune_date != '' )
|
if ( $prune_date != '' )
|
||||||
{
|
{
|
||||||
$sql .= " AND p.post_time < $prune_date";
|
$sql .= " AND p.post_time < $prune_date";
|
||||||
|
|
Loading…
Add table
Reference in a new issue