aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-14 09:00:43 +0000
committerMario <mario@mariovavti.com>2024-05-14 09:00:43 +0000
commit10d1cbd3ce58fb868a42d1425f62f908df395e7d (patch)
tree124ef89bb92d9ae7b82138d2e71d897f1689472f /Zotlabs
parent960354b16cab06915a2f85fcc5e55d380765d858 (diff)
downloadvolse-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.php5
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'];
}
}