From decdf879afb421268d12efc1212e4f84b7dfb383 Mon Sep 17 00:00:00 2001 From: oricgn Date: Wed, 16 Sep 2015 11:12:21 +0200 Subject: [PATCH] Fix for issue #860 stale file purge ignores tempfiles --- include/db/PhorumDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/db/PhorumDB.php b/include/db/PhorumDB.php index 5305d3cd8..378a290d6 100644 --- a/include/db/PhorumDB.php +++ b/include/db/PhorumDB.php @@ -5077,7 +5077,7 @@ public function list_stale_files() add_datetime, 'Attachments, left behind by unposted messages' AS reason FROM {$this->files_table} - WHERE link = '".PHORUM_LINK_EDITOR."' + WHERE ( link = '".PHORUM_LINK_EDITOR."' OR link = '".PHORUM_LINK_TEMPFILE."' ) AND add_datetime < ". (time()-PHORUM_MAX_EDIT_TIME), 'file_id',