From 76b7355b8744345700a61fa635d7738f9726875e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 2 Feb 2014 17:51:05 +0100 Subject: [PATCH] [ticket/12150] Add missing space to query for shadow topics PHPBB3-12150 --- phpBB/includes/functions_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index a277429c32..2bf8e6dcf0 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2328,7 +2328,7 @@ function prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync 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