From c62d93cfe87d13384d9660167f04abd33cad010f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 1 Feb 2021 10:57:25 +0000 Subject: [PATCH] Avoid "Undefined index: verb" --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 19f382b67..f528ea8da 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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) {