From c2b49f25889fcb77048e65d439ba8c483c529d48 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 23 Feb 2013 12:42:55 +0100 Subject: [PATCH] make sure conv_as->items is an array or don't proceed --- include/ostatus_conversation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ostatus_conversation.php b/include/ostatus_conversation.php index cdaf80d76b..cecbb04964 100644 --- a/include/ostatus_conversation.php +++ b/include/ostatus_conversation.php @@ -75,6 +75,9 @@ function complete_conversation($itemid, $conversation_url, $only_add_conversatio $conv_as = json_decode($conv_as); $first_id = ""; + + if (!is_array($conv_as->items)) + return; $items = array_reverse($conv_as->items); foreach ($items as $single_conv) { -- 2.39.5