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.
This commit is contained in:
Yassine Doghri 2024-02-20 15:25:01 +00:00
parent 867dfad9ae
commit cec78155f9
1 changed files with 2 additions and 2 deletions

View File

@ -213,13 +213,13 @@ class PodcastImport extends BaseCommand
throw new Exception('Missing podcast cover. Please include an <itunes:image> 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 <itunes:name> tag inside the <itunes:owner> 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 <itunes:email> tag inside the <itunes:owner> tag.'
);