]> git.mxchange.org Git - friendica.git/commitdiff
Fix class Object\Item not found in Object\Post
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 8 Dec 2017 04:36:33 +0000 (23:36 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 8 Dec 2017 04:50:38 +0000 (23:50 -0500)
src/Object/Item.php

index 4bb918d0eeb21e91b15b070d47ce29a1cc4637b1..13a69fd2890371e594ed09aacfeef26e6d3891d6 100644 (file)
@@ -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;
                }
                /*