]> git.wh0rd.org Git - tt-rss.git/commitdiff
create_published_article: do not allow empty title
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 9 Sep 2012 17:44:20 +0000 (21:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 9 Sep 2012 17:44:20 +0000 (21:44 +0400)
include/functions.php

index bbf7dd8da41be6421859d3721629d3ec1253c048..701949fd752d55b6d4d65e84bc25dacc0eb84100 100644 (file)
                $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