From f803b69fddd50810ffc9dadb6d9f3957e3e26fad Mon Sep 17 00:00:00 2001 From: Robbt Date: Mon, 17 Dec 2018 11:19:16 -0500 Subject: [PATCH] fixed default behavior of podcast autogenerated smartblocks and playlists --- airtime_mvc/application/services/PodcastService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airtime_mvc/application/services/PodcastService.php b/airtime_mvc/application/services/PodcastService.php index 9f5be9ead..8ea319772 100644 --- a/airtime_mvc/application/services/PodcastService.php +++ b/airtime_mvc/application/services/PodcastService.php @@ -166,15 +166,15 @@ class Application_Service_PodcastService * This will automatically create a smartblock and playlist for this podcast. */ - public static function createPodcastSmartblockAndPlaylist($podcast, $title = "Podcast") + public static function createPodcastSmartblockAndPlaylist($podcast, $title = null) { if (is_array($podcast)) { $newpodcast = new Podcast(); $newpodcast->fromArray($podcast, BasePeer::TYPE_FIELDNAME); $podcast = $newpodcast; - if ($title == "Podcast") { - $title = $podcast->getDbTitle(); - } + } + if ($title == null) { + $title = $podcast->getDbTitle(); } // Base class $newBl = new Application_Model_Block();