diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-17 15:20:01 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-17 15:20:01 -0400 |
commit | 95717c2b16a1cdaae59a3a1c40412b4ffc5a0764 (patch) | |
tree | 41afb589b2d2c2c795cf7b90307e10b7980484e6 /classes/User.php | |
parent | 5bf2853b601b12a7c64a98fb6726e225170b8fb7 (diff) |
change how the user profile is fetched
darcs-hash:20080517192001-84dde-fa2b16b7aeacab52c7697e14182fc72d2022bfcc.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 8 |
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) { |