diff options
author | Mario <mario@mariovavti.com> | 2020-02-20 21:25:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-02-20 21:25:41 +0000 |
commit | 60311eb04bc0fa564b9fbe179eb907989ff09d8f (patch) | |
tree | 32a16ad107b01da2fd007c76727dc8955fb9477a /Zotlabs/Lib/Activity.php | |
parent | 7d05b8e5fdcf628f6badaff60c73811dcc19e45c (diff) | |
download | volse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.tar.gz volse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.tar.bz2 volse-hubzilla-60311eb04bc0fa564b9fbe179eb907989ff09d8f.zip |
fix warning
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
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; } } |