diff --git a/app/commands/ImportMLPMA.php b/app/commands/ImportMLPMA.php index a836d849..53c0b4d8 100644 --- a/app/commands/ImportMLPMA.php +++ b/app/commands/ImportMLPMA.php @@ -451,7 +451,13 @@ class ImportMLPMA extends Command { * @return array */ protected function getAtomTags($rawTags) { - $tags = $rawTags['tags']['quicktime']; + + if (array_key_exists('tags', $rawTags) && + array_key_exists('quicktime', $rawTags['tags'])) { + $tags = $rawTags['tags']['quicktime']; + } else { + $tags = []; + } $trackNumber = null; if (isset($tags['track_number'])) { @@ -480,7 +486,13 @@ class ImportMLPMA extends Command { * @return array */ protected function getVorbisTags($rawTags) { - $tags = $rawTags['tags']['vorbiscomment']; + if (array_key_exists('tags', $rawTags) && + array_key_exists('vorbiscomment', $rawTags['tags']) + ) { + $tags = $rawTags['tags']['vorbiscomment']; + } else { + $tags = []; + } $trackNumber = null; if (isset($tags['track_number'])) {