aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-02-20 21:25:41 +0000
committerMario <mario@mariovavti.com>2020-02-20 21:25:41 +0000
commit60311eb04bc0fa564b9fbe179eb907989ff09d8f (patch)
tree32a16ad107b01da2fd007c76727dc8955fb9477a /Zotlabs/Lib
parent7d05b8e5fdcf628f6badaff60c73811dcc19e45c (diff)
downloadvolse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.tar.gz
volse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.tar.bz2
volse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.zip
fix warning
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 1ac3135db..5cb111381 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1654,7 +1654,7 @@ class Activity {
$answer_found = true;
if (is_array($o['anyOf'][$c]['replies'])) {
foreach($o['anyOf'][$c]['replies'] as $reply) {
- if(array_key_exists('id',$reply) && $reply['id'] === $mid) {
+ if(is_array($reply) && array_key_exists('id',$reply) && $reply['id'] === $mid) {
$found = true;
}
}
@@ -1673,7 +1673,7 @@ class Activity {
$answer_found = true;
if (is_array($o['oneOf'][$c]['replies'])) {
foreach($o['oneOf'][$c]['replies'] as $reply) {
- if(array_key_exists('id',$reply) && $reply['id'] === $mid) {
+ if(is_array($reply) && array_key_exists('id',$reply) && $reply['id'] === $mid) {
$found = true;
}
}