fix: Undefined index if podcast definitly don't have any image
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 2m9s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-02-07 18:43:47 +01:00
parent 6ce5c0c199
commit a16556c0eb

View File

@ -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