[fix] #389 Empty article title (blank title tag)

This commit is contained in:
nicosomb 2014-02-03 17:11:00 +01:00
parent 445a1a1c8d
commit fa0bfb775a

View file

@ -375,7 +375,7 @@ class Poche
{
case 'add':
$content = $this->getPageContent($url);
$title = $content['rss']['channel']['item']['title'];
$title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled');
$body = $content['rss']['channel']['item']['description'];
if ($this->store->add($url->getUrl(), $title, $body, $this->user->getId())) {