1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 23:55:26 +02:00

[ticket/12150] Add missing space to query for shadow topics

PHPBB3-12150
This commit is contained in:
Marc Alexander 2014-02-02 17:51:05 +01:00
parent d97c58aeea
commit 76b7355b87

View File

@ -2328,7 +2328,7 @@ function prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync
if ($prune_mode == 'shadow') if ($prune_mode == 'shadow')
{ {
$sql_and .= ' AND topic_type = ' . ITEM_MOVED . "AND topic_last_post_time < $prune_date"; $sql_and .= ' AND topic_status = ' . ITEM_MOVED . " AND topic_last_post_time < $prune_date";
} }
$sql = 'SELECT topic_id $sql = 'SELECT topic_id