From d374ab2b3b825940bc49bf0352174b7cb80280ed Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sun, 5 Mar 2017 12:26:54 +0100 Subject: [PATCH] Fix call to get_author() This was introduced by the zf1 mega commit 625f92fe4459bb23ae4476b8a5943f6a0c128290. https://github.com/LibreTime/libretime/commit/625f92fe4459bb23ae4476b8a5943f6a0c128290#commitcomment-21156925 --- airtime_mvc/application/services/PodcastService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/services/PodcastService.php b/airtime_mvc/application/services/PodcastService.php index b6dc72f04..dd3dd5d78 100644 --- a/airtime_mvc/application/services/PodcastService.php +++ b/airtime_mvc/application/services/PodcastService.php @@ -91,8 +91,7 @@ class Application_Service_PodcastService $podcastArray["language"] = htmlspecialchars($rss->get_language()); $podcastArray["copyright"] = htmlspecialchars($rss->get_copyright()); - $rssAuthor = $rss->getAuthor(); - $name = empty($rssAuthor) ? "" : $rss->rssAuthor->get_name(); + $name = empty($rss->get_author()) ? "" : $rss->get_author()->get_name(); $podcastArray["creator"] = htmlspecialchars($name); $categories = array(); @@ -471,4 +470,4 @@ class Application_Service_PodcastService return false; } } -} \ No newline at end of file +}