aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 7bcc9f04e..4a588368d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -240,7 +240,7 @@
public function getGUID() { return $this->get('guid'); }
public function getOwner() { return $this->get('owner_guid'); }
public function getType() { return $this->get('type'); }
- public function getSubtype() { return get_subtype_from_id($this->get('owner_guid')); }
+ public function getSubtype() { return get_subtype_from_id($this->get('subtype')); }
public function getTimeCreated() { return $this->get('time_created'); }
public function getTimeUpdated() { return $this->get('time_updated'); }