From 291b5a784e34099ece1839bf0bb3e8091c411576 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 7 Apr 2017 23:51:17 -0400 Subject: Update use of object getParent() function This function has been updated to construct and return the proper object type. This commit addresses the uses of this function so far to account for this. --- app/class/stage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/class/stage.class.php b/app/class/stage.class.php index 31f6a94..150ac5d 100644 --- a/app/class/stage.class.php +++ b/app/class/stage.class.php @@ -66,7 +66,7 @@ class stage extends object */ public function getPrev() : ?stage { - $pad = new pad($this->getParent()); + $pad = $this->getParent(); if ($pad->stage == $this->guid) return NULL; @@ -107,7 +107,7 @@ class stage extends object return false; if (!($prev = $this->getPrev())) - $prev = new pad($this->getParent()); + $prev = $this->getParent(); $tmp = $next->stage; $prev->stage = $next->guid; -- cgit v1.2.3