From 3172d80347156b4d64061ad3eb1214e95fd0f7c4 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 9 Apr 2017 23:15:20 -0400 Subject: Fix bugs in object class Added missing calls to function saveObj() where $this is mutated. --- app/class/object.class.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') 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(); } /* -- cgit v1.2.3 From ce1e026c42dbe142202d17675791579dfc30d6b5 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 9 Apr 2017 23:19:54 -0400 Subject: Fix bugs in user class Added calls to function saveObj() where $this is mutated. --- app/class/user.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/class/user.class.php b/app/class/user.class.php index 97309f8..a6addf6 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -194,6 +194,7 @@ class user extends agent $user->setPasswd($passwd); $user->setEmail(""); $user->reg = 1; + $user->saveObj(); return $user; } @@ -224,6 +225,7 @@ class user extends agent { $this->salt = self::getBlob(); $this->auth = self::getAuth($passwd, $this->salt); + $this->saveObj(); } /* @@ -237,6 +239,7 @@ class user extends agent return false; $this->emailConf = 1; + $this->saveObj(); return true; } @@ -249,6 +252,7 @@ class user extends agent $this->email = $email; $this->emailVer = substr(self::getBlob(), 0, 8); $this->emailConf = 0; + $this->saveObj(); } /* -- cgit v1.2.3 From f97e2dc2fe38ac26dde0ca18ba69bc2c412e699b Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 9 Apr 2017 23:22:03 -0400 Subject: Fix bug in group class --- app/class/group.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/class/group.class.php b/app/class/group.class.php index 1e98aff..5163cb8 100644 --- a/app/class/group.class.php +++ b/app/class/group.class.php @@ -59,6 +59,7 @@ class group extends agent $group->setOwner($owner); $group->name = $name; $group->objtype = "group"; + $group->saveObj(); return $group; } } -- cgit v1.2.3 From adf93dfd11483d69ad4bc823a2b936df270d951d Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 9 Apr 2017 23:25:25 -0400 Subject: Fix bug in pad class --- app/class/pad.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/class/pad.class.php b/app/class/pad.class.php index a5c771b..3966f58 100644 --- a/app/class/pad.class.php +++ b/app/class/pad.class.php @@ -81,6 +81,7 @@ class pad extends object $pad->name = $name; $pad->objtype = "pad"; $pad->issueNumb = 0; + $pad->saveObj(); return $pad; } -- cgit v1.2.3 From 003f48ae880ad61eec65d9816d485457c45c4b11 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 9 Apr 2017 23:30:40 -0400 Subject: Fix bug in stage class --- app/class/stage.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/class/stage.class.php b/app/class/stage.class.php index 1825546..760a9a2 100644 --- a/app/class/stage.class.php +++ b/app/class/stage.class.php @@ -46,6 +46,7 @@ class stage extends object $stage->setParent($parent); $stage->name = $name; $stage->objtype = "stage"; + $stage->saveObj(); return $stage; } -- cgit v1.2.3