From 29501528a92a54c06395db0363a3337401b932e1 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 15 Dec 2018 06:54:03 -0600 Subject: [PATCH] provide fallback podcast name for smartblock creation from popup --- airtime_mvc/application/services/PodcastService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/services/PodcastService.php b/airtime_mvc/application/services/PodcastService.php index b67028a8c..9f5be9ead 100644 --- a/airtime_mvc/application/services/PodcastService.php +++ b/airtime_mvc/application/services/PodcastService.php @@ -166,12 +166,15 @@ class Application_Service_PodcastService * This will automatically create a smartblock and playlist for this podcast. */ - public static function createPodcastSmartblockAndPlaylist($podcast, $title) + public static function createPodcastSmartblockAndPlaylist($podcast, $title = "Podcast") { if (is_array($podcast)) { $newpodcast = new Podcast(); $newpodcast->fromArray($podcast, BasePeer::TYPE_FIELDNAME); $podcast = $newpodcast; + if ($title == "Podcast") { + $title = $podcast->getDbTitle(); + } } // Base class $newBl = new Application_Model_Block();