From 681861d9a85b9defc561d46af3f07b86efcaafdc Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 7 Apr 2017 21:01:47 -0400 Subject: Update function getParent() Now returns the correct type of object based on the original object's parent. --- app/class/object.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/class/object.class.php') diff --git a/app/class/object.class.php b/app/class/object.class.php index 1fbe923..dc988ae 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -91,7 +91,8 @@ class object extends table if (!isset($this->parent) || $this->parent == "") return NULL; - return new object($this->parent); + $parent = new object($this->parent); + return new $parent->objtype($parent->guid); } /* -- cgit v1.2.3