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

This commit is contained in:
Michel Roux 2024-02-07 18:43:47 +01:00
parent 6ce5c0c199
commit a16556c0eb
1 changed files with 3 additions and 1 deletions

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