From: Andrew Dolgov Date: Sun, 9 Sep 2012 17:44:20 +0000 (+0400) Subject: create_published_article: do not allow empty title X-Git-Tag: 1.6.0~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ecd5a3c87f547d8a309f429ad0effbcc9f18efcd;p=tt-rss.git create_published_article: do not allow empty title --- diff --git a/include/functions.php b/include/functions.php index bbf7dd8d..701949fd 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5582,6 +5582,9 @@ $guid = 'tt-rss-share:' . uniqid(); $content_hash = sha1($content); + if (!$title) $title = $url; + if (!$title && !$url) return false; + $result = db_query($link, "INSERT INTO ttrss_entries (title, guid, link, updated, content, content_hash, date_entered, date_updated) VALUES