From 94f2364cd82a7390fbeddcdc02a58222bd60fbf3 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 7 Feb 2015 18:29:03 +0100 Subject: Fix #1057 Unexisting function --- src/Wallabag/CoreBundle/Service/Extractor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Service/Extractor.php') diff --git a/src/Wallabag/CoreBundle/Service/Extractor.php b/src/Wallabag/CoreBundle/Service/Extractor.php index d38b0d76..e4ec96f6 100644 --- a/src/Wallabag/CoreBundle/Service/Extractor.php +++ b/src/Wallabag/CoreBundle/Service/Extractor.php @@ -10,7 +10,7 @@ final class Extractor public static function extract($url) { $pageContent = Extractor::getPageContent(new Url(base64_encode($url))); - $title = ($pageContent['rss']['channel']['item']['title'] != '') ? $pageContent['rss']['channel']['item']['title'] : _('Untitled'); + $title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled'; $body = $pageContent['rss']['channel']['item']['description']; $content = new Content(); @@ -19,6 +19,7 @@ final class Extractor return $content; } + /** * Get the content for a given URL (by a call to FullTextFeed) * -- cgit v1.2.3