make sure conv_as->items is an array or don't proceed

This commit is contained in:
Tobias Diekershoff 2013-02-23 12:42:55 +01:00
parent c35b21eb18
commit c2b49f2588

View file

@ -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) {