summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index da64737eb..3c131b070 100644
--- a/functions.php
+++ b/functions.php
@@ -551,8 +551,13 @@
$content_hash = "SHA1:" . sha1(strip_tags($entry_content));
$entry_comments = strip_tags($item["comments"]);
-
+
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
+
+ if (!$entry_author) {
+ $entry_author = db_escape_string(strip_tags($item['author']));
+ }
+
$entry_guid = db_escape_string(strip_tags($entry_guid));
$result = db_query($link, "SELECT id FROM ttrss_entries