1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 17:31:30 +00:00

fix handling of rss author field

This commit is contained in:
Andrew Dolgov
2007-02-01 06:23:00 +01:00
parent 1aafba1ed8
commit 4d6e91579f

View File

@@ -516,6 +516,9 @@
$entry_author = db_escape_string(strip_tags($item['dc']['creator'])); $entry_author = db_escape_string(strip_tags($item['dc']['creator']));
if ($item['author']) { if ($item['author']) {
if (is_array($item['author'])) {
if (!$entry_author) { if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['name'])); $entry_author = db_escape_string(strip_tags($item['author']['name']));
} }
@@ -523,6 +526,7 @@
if (!$entry_author) { if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['email'])); $entry_author = db_escape_string(strip_tags($item['author']['email']));
} }
}
if (!$entry_author) { if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author'])); $entry_author = db_escape_string(strip_tags($item['author']));