mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix php error
(cherry picked from commit eeef6cfd00)
Co-authored-by: Mario <mario@mariovavti.com>
This commit is contained in:
@@ -2578,7 +2578,7 @@ class Activity {
|
||||
$ptr = [$act->obj['url']];
|
||||
}
|
||||
foreach ($ptr as $vurl) {
|
||||
if (array_key_exists('mediaType', $vurl) && $vurl['mediaType'] === 'text/html') {
|
||||
if (isset($vurl['mediaType']) && $vurl['mediaType'] === 'text/html') {
|
||||
$s['plink'] = $vurl['href'];
|
||||
break;
|
||||
}
|
||||
@@ -2590,7 +2590,7 @@ class Activity {
|
||||
}
|
||||
}
|
||||
|
||||
if (!(isset($s['plink']) && $s['plink'])) {
|
||||
if (empty($s['plink'])) {
|
||||
$s['plink'] = $s['mid'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user