Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for issue Phorum#860
stale file purge ignores tempfiles
  • Loading branch information
oricgn committed Sep 16, 2015
1 parent 3854233 commit decdf87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/db/PhorumDB.php
Expand Up @@ -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',
Expand Down

0 comments on commit decdf87

Please sign in to comment.