[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
1 changed files with 1 additions and 1 deletions

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())) {