diff options
author | Mario <mario@mariovavti.com> | 2020-10-12 20:58:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-12 20:58:30 +0000 |
commit | 375986437ab94d3e25bb829409971adc89d4bdf9 (patch) | |
tree | 6d82888da95c9a1c5fc39c6c522f211271164850 /include/conversation.php | |
parent | 5f93157d5a5cc824d98c39d1983d882df0a13067 (diff) | |
download | volse-hubzilla-375986437ab94d3e25bb829409971adc89d4bdf9.tar.gz volse-hubzilla-375986437ab94d3e25bb829409971adc89d4bdf9.tar.bz2 volse-hubzilla-375986437ab94d3e25bb829409971adc89d4bdf9.zip |
fix php warnings
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php index c8c36f241..0be50ce26 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -104,15 +104,15 @@ function localize_item(&$item){ if($obj['author'] && $obj['author']['link']) $author_link = get_rel_link($obj['author']['link'],'alternate'); - elseif($obj['actor'] && $obj['actor']['url']) - $author_link = $obj['actor']['url'][0]['href']; + elseif(is_array($obj['actor']) && $obj['actor']['url']) + $author_link = ((is_array($obj['actor']['url']) ? $obj['actor']['url'][0]['href'] : $obj['actor']['url']); else $author_link = ''; $author_name = (($obj['author'] && $obj['author']['name']) ? $obj['author']['name'] : ''); if(!$author_name) - $author_name = (($obj['actor'] && $obj['actor']['name']) ? $obj['actor']['name'] : ''); + $author_name = ((is_array($obj['actor']) && $obj['actor']['name']) ? $obj['actor']['name'] : ''); $item_url = get_rel_link($obj['link'],'alternate'); |