aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-07 08:40:34 +0000
committerMario <mario@mariovavti.com>2023-11-07 08:40:34 +0000
commit42651707f82bb0f46153eb964d828787d9ba3c3c (patch)
tree5d54424c851499229b96829bab1165819f282505
parent95c13eaf5a0f63b9b98fdff0fe887546953bc76f (diff)
downloadvolse-hubzilla-42651707f82bb0f46153eb964d828787d9ba3c3c.tar.gz
volse-hubzilla-42651707f82bb0f46153eb964d828787d9ba3c3c.tar.bz2
volse-hubzilla-42651707f82bb0f46153eb964d828787d9ba3c3c.zip
check if required keys are set
-rw-r--r--Zotlabs/Lib/Libzot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index d7692ee4a..e812dbd92 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1455,7 +1455,7 @@ class Libzot {
if ($act && $act->obj) {
if (isset($act->obj['tag']) && is_array($act->obj['tag']) && $act->obj['tag']) {
foreach ($act->obj['tag'] as $tag) {
- if ($tag['type'] === 'Mention' && (strpos($tag['href'], z_root()) !== false)) {
+ if (isset($tag['type'], $tag['href']) && $tag['type'] === 'Mention' && (strpos($tag['href'], z_root()) !== false)) {
$address = basename($tag['href']);
if ($address) {
$z = q("select channel_hash as hash from channel where channel_address = '%s' and channel_hash != '%s'