From 541a3c0b9a7f481a51d383f85b00259b10e55550 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 3 Apr 2008 09:12:27 +0000 Subject: Marcus Povey * Cut and paste is a killer git-svn-id: https://code.elgg.org/elgg/trunk@379 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') 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'); } -- cgit v1.2.3