From a16556c0ebb9cfb42b9b51583a5009ef79fc9f2e Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 7 Feb 2024 18:43:47 +0100 Subject: [PATCH] fix: Undefined index if podcast definitly don't have any image --- lib/Core/EpisodeAction/EpisodeActionReader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Core/EpisodeAction/EpisodeActionReader.php b/lib/Core/EpisodeAction/EpisodeActionReader.php index a7a3099..5410996 100644 --- a/lib/Core/EpisodeAction/EpisodeActionReader.php +++ b/lib/Core/EpisodeAction/EpisodeActionReader.php @@ -73,7 +73,9 @@ class EpisodeActionReader extends CoreEpisodeActionReader if (!isset($image)) { preg_match('/stringOrNull($matches[1]); + if (count($matches) > 1) { + $image = $this->stringOrNull($matches[1]); + } } // Get episode description