fix: Undefined index if podcast definitly don't have any image
This commit is contained in:
parent
6ce5c0c199
commit
a16556c0eb
@ -73,7 +73,9 @@ class EpisodeActionReader extends CoreEpisodeActionReader
|
||||
|
||||
if (!isset($image)) {
|
||||
preg_match('/<itunes:image\s+href="([^"]+)"/', $xmlString, $matches);
|
||||
$image = $this->stringOrNull($matches[1]);
|
||||
if (count($matches) > 1) {
|
||||
$image = $this->stringOrNull($matches[1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Get episode description
|
||||
|
Loading…
Reference in New Issue
Block a user