From: Tobias Diekershoff Date: Sat, 23 Feb 2013 11:42:55 +0000 (+0100) Subject: make sure conv_as->items is an array or don't proceed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2b49f25889fcb77048e65d439ba8c483c529d48;p=friendica.git make sure conv_as->items is an array or don't proceed --- 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) {