diff options
author | Mario <mario@mariovavti.com> | 2024-05-14 09:00:43 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-05-14 09:00:43 +0000 |
commit | 10d1cbd3ce58fb868a42d1425f62f908df395e7d (patch) | |
tree | 124ef89bb92d9ae7b82138d2e71d897f1689472f /Zotlabs | |
parent | 960354b16cab06915a2f85fcc5e55d380765d858 (diff) | |
download | volse-hubzilla-10d1cbd3ce58fb868a42d1425f62f908df395e7d.tar.gz volse-hubzilla-10d1cbd3ce58fb868a42d1425f62f908df395e7d.tar.bz2 volse-hubzilla-10d1cbd3ce58fb868a42d1425f62f908df395e7d.zip |
php warnings/errors
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 75d2ffbe9..b819ef0f7 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1727,9 +1727,12 @@ class Activity { foreach ($links as $link) { if (is_array($link) && array_key_exists('mediaType', $link) && $link['mediaType'] === 'text/html') { $profile = $link['href']; + } elseif (is_string($link)) { + $profile = $link; + break; } } - if (!$profile) { + if (!$profile && isset($links[0]['href'])) { $profile = $links[0]['href']; } } |