aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-04 09:09:41 +0000
committerMario <mario@mariovavti.com>2024-06-04 09:09:41 +0000
commit75e1b70584fc0b943f6892af0a4ccdd0f6f8ca11 (patch)
tree0e5996bb33d1cacb52147c520f3d00e015eda7fd /Zotlabs
parent1dc73935d9ef7c511675ccd8a492fe2a93892159 (diff)
downloadvolse-hubzilla-75e1b70584fc0b943f6892af0a4ccdd0f6f8ca11.tar.gz
volse-hubzilla-75e1b70584fc0b943f6892af0a4ccdd0f6f8ca11.tar.bz2
volse-hubzilla-75e1b70584fc0b943f6892af0a4ccdd0f6f8ca11.zip
php warnings/errors
(cherry picked from commit 10d1cbd3ce58fb868a42d1425f62f908df395e7d) Co-authored-by: Mario <mario@mariovavti.com>
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 43d91b59d..b628221fb 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1736,9 +1736,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'];
}
}