fix: Undefined index if podcast definitly don't have any image
This commit is contained in:
parent
6ce5c0c199
commit
a16556c0eb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user