]> git.mxchange.org Git - friendica.git/commitdiff
make sure conv_as->items is an array or don't proceed
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 23 Feb 2013 11:42:55 +0000 (12:42 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 23 Feb 2013 11:42:55 +0000 (12:42 +0100)
include/ostatus_conversation.php

index cdaf80d76b1eeedcc990f373fa617ed116c1e042..cecbb0496421e6195fbc4fdd37263628455d4c8d 100644 (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) {