mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:15:56 +00:00
fix handling of rss author field
This commit is contained in:
@@ -516,12 +516,16 @@
|
|||||||
$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 (!$entry_author) {
|
|
||||||
$entry_author = db_escape_string(strip_tags($item['author']['name']));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$entry_author) {
|
if (is_array($item['author'])) {
|
||||||
$entry_author = db_escape_string(strip_tags($item['author']['email']));
|
|
||||||
|
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) {
|
if (!$entry_author) {
|
||||||
|
|||||||
Reference in New Issue
Block a user