summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-09 21:44:20 +0400
committerAndrew Dolgov <[email protected]>2012-09-09 21:44:20 +0400
commitecd5a3c87f547d8a309f429ad0effbcc9f18efcd (patch)
tree29375c6c737b4a7c51179e15759911b3f3e060db /include/functions.php
parent5c33ecab1fceffc2a2a8c8093393560cad0b2eba (diff)
create_published_article: do not allow empty title
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php3
1 files changed, 3 insertions, 0 deletions
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