Merge pull request #501 from samrzhevsky/master
This commit is contained in:
commit
237e2f7a57
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue