[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:
@@ -61,7 +61,7 @@ if (empty($max_date)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$query = "
|
$query = "
|
||||||
SELECT
|
SELECT DISTINCT
|
||||||
file_to_post.file_id
|
file_to_post.file_id
|
||||||
FROM
|
FROM
|
||||||
file_to_post
|
file_to_post
|
||||||
|
Reference in New Issue
Block a user