mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
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:
parent
867dfad9ae
commit
cec78155f9
@ -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.'
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user