We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 95717c2b authored by Evan Prodromou's avatar Evan Prodromou

change how the user profile is fetched

darcs-hash:20080517192001-84dde-fa2b16b7aeacab52c7697e14182fc72d2022bfcc.gz
parent 5bf2853b
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment