From cec78155f94a222edcf7964c0a2f3a3e0f46a98d Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Tue, 20 Feb 2024 15:25:01 +0000 Subject: [PATCH] fix(podcast-import): move closing parenthasis when checking for owner name and email existence This fixes a bug introduced in 1.10.0, having imports blocked and showing "1" as error. --- modules/PodcastImport/Commands/PodcastImport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/PodcastImport/Commands/PodcastImport.php b/modules/PodcastImport/Commands/PodcastImport.php index 84db1f25..1e5133ee 100644 --- a/modules/PodcastImport/Commands/PodcastImport.php +++ b/modules/PodcastImport/Commands/PodcastImport.php @@ -213,13 +213,13 @@ class PodcastImport extends BaseCommand throw new Exception('Missing podcast cover. Please include an tag.'); } - if (($ownerName = $this->podcastFeed->channel->itunes_owner->itunes_name->getValue() === null)) { + if (($ownerName = $this->podcastFeed->channel->itunes_owner->itunes_name->getValue()) === null) { throw new Exception( 'Missing podcast owner name. Please include an tag inside the tag.' ); } - if (($ownerEmail = $this->podcastFeed->channel->itunes_owner->itunes_email->getValue() === null)) { + if (($ownerEmail = $this->podcastFeed->channel->itunes_owner->itunes_email->getValue()) === null) { throw new Exception( 'Missing podcast owner email. Please include an tag inside the tag.' );