summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-07 23:51:17 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 18:37:31 -0400
commit291b5a784e34099ece1839bf0bb3e8091c411576 (patch)
tree710c54efb1cf877214c2cbae24459a6ba9d0eb79 /app/class
parent5340dce8ad70a8cfc62116144f668f22845a2f31 (diff)
downloadscrott-291b5a784e34099ece1839bf0bb3e8091c411576.tar.gz
scrott-291b5a784e34099ece1839bf0bb3e8091c411576.zip
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.
Diffstat (limited to 'app/class')
-rw-r--r--app/class/stage.class.php4
1 files changed, 2 insertions, 2 deletions
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;