]> git.wh0rd.org Git - tt-rss.git/commitdiff
parse author tag like dc:creator
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 22 Nov 2006 07:21:12 +0000 (08:21 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 22 Nov 2006 07:21:12 +0000 (08:21 +0100)
functions.php

index da64737ebcd4a95088dec8497f28c3252692b2ae..3c131b070836e9df513b793d7994aeb524fd20c9 100644 (file)
                                        $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