From ecd5a3c87f547d8a309f429ad0effbcc9f18efcd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Sep 2012 21:44:20 +0400 Subject: create_published_article: do not allow empty title --- include/functions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index bbf7dd8da..701949fd7 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 -- cgit v1.2.3