From: Hypolite Petovan Date: Fri, 8 Dec 2017 04:36:33 +0000 (-0500) Subject: Fix class Object\Item not found in Object\Post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79ed1568b6c1aaf2aa040d5d279399ee1d78b3b1;p=friendica.git Fix class Object\Item not found in Object\Post --- diff --git a/src/Object/Item.php b/src/Object/Item.php index 4bb918d0ee..13a69fd289 100644 --- a/src/Object/Item.php +++ b/src/Object/Item.php @@ -90,7 +90,7 @@ class Item extends BaseObject } $item['pagedrop'] = $data['pagedrop']; - $child = new Item($item); + $child = new Post($item); $this->addChild($child); } } @@ -472,14 +472,14 @@ class Item extends BaseObject * * @return mixed */ - public function addChild(Item $item) + public function addChild(Post $item) { $item_id = $item->getId(); if (!$item_id) { - logger('[ERROR] Item::addChild : Item has no ID!!', LOGGER_DEBUG); + logger('[ERROR] Post::addChild : Item has no ID!!', LOGGER_DEBUG); return false; } elseif ($this->getChild($item->getId())) { - logger('[WARN] Item::addChild : Item already exists ('. $item->getId() .').', LOGGER_DEBUG); + logger('[WARN] Post::addChild : Item already exists ('. $item->getId() .').', LOGGER_DEBUG); return false; } /*