1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:15:55 +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,12 +516,16 @@
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
if ($item['author']) {
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['name']));
}
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['email']));
if (is_array($item['author'])) {
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['name']));
}
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['email']));
}
}
if (!$entry_author) {