]> git.mxchange.org Git - friendica.git/commitdiff
Avoid "Undefined index: verb"
authorMichael <heluecht@pirati.ca>
Mon, 1 Feb 2021 10:57:25 +0000 (10:57 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 1 Feb 2021 10:57:25 +0000 (10:57 +0000)
src/Model/Item.php

index 19f382b67ed995ec933e059b03bfcf057cd5ce31..f528ea8da5220536c060ecbc652e028847e4d6d9 100644 (file)
@@ -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) {