[StoreRemoteMedia] script removeRemoteMedia.php was trying to remove already removed files

Sometimes different posts are associated with the same file, that case wasn't considered
Thanks to XRevan86 for spotting this issue.
This commit is contained in:
Diogo Cordeiro 2019-04-18 01:03:09 +01:00
parent 98ebe1f63b
commit 2d20656e22
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ if (empty($max_date)) {
}
$query = "
SELECT
SELECT DISTINCT
file_to_post.file_id
FROM
file_to_post