Avoid "Undefined index: verb"
This commit is contained in:
parent
8c9346fc12
commit
c62d93cfe8
|
@ -1059,7 +1059,7 @@ class Item
|
|||
$update_commented = in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]);
|
||||
} else {
|
||||
// Update when it isn't a follow or tag verb
|
||||
$update_commented = !in_array($item['verb'], [Activity::FOLLOW, Activity::TAG]);
|
||||
$update_commented = !in_array($item['verb'] ?? '', [Activity::FOLLOW, Activity::TAG]);
|
||||
}
|
||||
|
||||
if ($update_commented) {
|
||||
|
|
Loading…
Reference in a new issue