summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-09 23:15:20 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 23:15:20 -0400
commit3172d80347156b4d64061ad3eb1214e95fd0f7c4 (patch)
tree971324db2b8ec11843b3ff28679dda94ac7bdce5 /app/class
parentcc1f573a276bd5f022831f837bb9c1234df56ad9 (diff)
downloadscrott-3172d80347156b4d64061ad3eb1214e95fd0f7c4.tar.gz
scrott-3172d80347156b4d64061ad3eb1214e95fd0f7c4.zip
Fix bugs in object class
Added missing calls to function saveObj() where $this is mutated.
Diffstat (limited to 'app/class')
-rw-r--r--app/class/object.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php
index dc988ae..14ab891 100644
--- a/app/class/object.class.php
+++ b/app/class/object.class.php
@@ -80,6 +80,7 @@ class object extends table
public function setOwner(agent $owner) : void
{
$this->owner = $owner->guid;
+ $this->saveObj();
}
/*
@@ -101,6 +102,7 @@ class object extends table
public function setParent(object $parent) : void
{
$this->parent = $parent->guid;
+ $this->saveObj();
}
/*