create_published_article: do not allow empty title

This commit is contained in:
Andrew Dolgov 2012-09-09 21:44:20 +04:00
parent 5c33ecab1f
commit ecd5a3c87f
1 changed files with 3 additions and 0 deletions

View File

@ -5582,6 +5582,9 @@
$guid = 'tt-rss-share:' . uniqid(); $guid = 'tt-rss-share:' . uniqid();
$content_hash = sha1($content); $content_hash = sha1($content);
if (!$title) $title = $url;
if (!$title && !$url) return false;
$result = db_query($link, "INSERT INTO ttrss_entries $result = db_query($link, "INSERT INTO ttrss_entries
(title, guid, link, updated, content, content_hash, date_entered, date_updated) (title, guid, link, updated, content, content_hash, date_entered, date_updated)
VALUES VALUES