summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php
index 945309638..8986053c5 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -43,7 +43,13 @@ class User extends DB_DataObject
###END_AUTOCODE
function getProfile() {
- return Profile::staticGet($this->$id);
+ $profile = DB_DataObject::factory('profile');
+ $profile->id = $this->id;
+ if ($profile->find()) {
+ $profile->fetch();
+ return $profile;
+ }
+ return NULL;
}
function isSubscribed($other) {