summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-11-22 08:21:12 +0100
committerAndrew Dolgov <[email protected]>2006-11-22 08:21:12 +0100
commitbbb416e58b08ae8ad8f7fe30fd83a410ad2d3fad (patch)
tree847d655b86498fef844bab58f18fea92bc6369ee /functions.php
parenta8a6c7317389e796a8badf93e441059b8a8754f1 (diff)
parse author tag like dc:creator
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