diff options
author | Mario <mario@mariovavti.com> | 2023-05-10 20:44:43 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-05-10 20:44:43 +0000 |
commit | 4a6b450c55f6c3cf46328dead7f87183a0b7d4e2 (patch) | |
tree | acda6ca8502dba6408872a93d8b69ca71a8e9194 /include/feedutils.php | |
parent | efd2f78274bf3163ca714a95b9c58ab54f96bac5 (diff) | |
parent | 5b80d57a542da0aa221dd69bf6c7f8d6af04956c (diff) | |
download | volse-hubzilla-4a6b450c55f6c3cf46328dead7f87183a0b7d4e2.tar.gz volse-hubzilla-4a6b450c55f6c3cf46328dead7f87183a0b7d4e2.tar.bz2 volse-hubzilla-4a6b450c55f6c3cf46328dead7f87183a0b7d4e2.zip |
Merge branch 'dev' into 8.4RC
Diffstat (limited to 'include/feedutils.php')
-rw-r--r-- | include/feedutils.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/feedutils.php b/include/feedutils.php index b657c28d0..a2d52c698 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -1829,11 +1829,11 @@ function atom_author($tag, $nick, $name, $uri, $h, $w, $type, $photo) { */ function atom_render_author($tag, $xchan) { - $nick = xmlify(substr($xchan['xchan_addr'], 0, strpos($xchan['xchan_addr'], '@'))); - $id = xmlify($xchan['xchan_url']); - $name = xmlify($xchan['xchan_name']); - $photo = xmlify($xchan['xchan_photo_l']); - $type = xmlify($xchan['xchan_photo_mimetype']); + $nick = ((!empty($xchan['xchan_addr'])) ? xmlify(substr($xchan['xchan_addr'], 0, strpos($xchan['xchan_addr'], '@'))) : ''); + $id = ((!empty($xchan['xchan_url'])) ? xmlify($xchan['xchan_url']) : ''); + $name = ((!empty($xchan['xchan_name'])) ? xmlify($xchan['xchan_name']) : ''); + $photo = ((!empty($xchan['xchan_photo_l'])) ? xmlify($xchan['xchan_photo_l']) : ''); + $type = ((!empty($xchan['xchan_photo_mimetype'])) ? xmlify($xchan['xchan_photo_mimetype']) : ''); $w = $h = 300; $o = "<$tag>\r\n"; |