Skip to content

Commit

Permalink
adjusted feed title handling when its value is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaishiyoku committed Dec 23, 2019
1 parent 09d94cb commit f3a8870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Rss/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function fromZendFeed(FeedInterface $zendFeed): Feed
$feed = new self();
$feed->setCategories(collect($zendFeed->getCategories()->getValues()));
$feed->setAuthors(collect($zendFeed->getAuthors() === null ? null : $zendFeed->getAuthors()->getValues()));
$feed->setTitle($zendFeed->getTitle());
$feed->setTitle($zendFeed->getTitle() ?? '');
$feed->setCopyright($zendFeed->getCopyright());
$feed->setCreatedAt(Carbon::parse($zendFeed->getDateCreated()));
$feed->setUpdatedAt(Carbon::parse($zendFeed->getDateModified()));
Expand Down

0 comments on commit f3a8870

Please sign in to comment.