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,8 +73,10 @@ class EpisodeActionReader extends CoreEpisodeActionReader
if (!isset($image)) { if (!isset($image)) {
preg_match('/<itunes:image\s+href="([^"]+)"/', $xmlString, $matches); preg_match('/<itunes:image\s+href="([^"]+)"/', $xmlString, $matches);
if (count($matches) > 1) {
$image = $this->stringOrNull($matches[1]); $image = $this->stringOrNull($matches[1]);
} }
}
// Get episode description // Get episode description
$itemContent = $item->children('content', true); $itemContent = $item->children('content', true);