Merge pull request #501 from samrzhevsky/master

This commit is contained in:
Sergio Brighenti 2022-12-29 00:58:19 +01:00 committed by GitHub
commit 237e2f7a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ class MediaRepository
protected function getMediaIdsByTagId($tagId)
{
$mediaIds = $this->db->query('SELECT `upload_id` FROM `uploads_tags` WHERE `tag_id` = ?', $tagId)->fetchAll();
$ids = [];
$ids = [-1];
foreach ($mediaIds as $pivot) {
$ids[] = $pivot->upload_id;
}