SAAS-1214 - add link to preferences from publish dialog when source is disconnected; fix missing check in station rss generation

This commit is contained in:
Duncan Sommerville 2015-11-17 12:35:31 -05:00
parent c12848b2de
commit 57d9245fbf
2 changed files with 5 additions and 3 deletions

View file

@ -387,8 +387,10 @@ class Application_Service_PodcastService
// Need to split categories into separate tags
$itunesCategories = explode(",", $podcast->getDbItunesCategory());
foreach ($itunesCategories as $c) {
$category = $channel->addChild("xmlns:itunes:category");
$category->addAttribute("text", $c);
if (!empty($c)) {
$category = $channel->addChild("xmlns:itunes:category");
$category->addAttribute("text", $c);
}
}
$episodes = PodcastEpisodesQuery::create()->filterByDbPodcastId($stationPodcastId)->find();