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',