Commit cec78155 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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.
parent 867dfad9
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.'
            );