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

parent 5bf2853b
......@@ -43,7 +43,13 @@ class User extends DB_DataObject
function getProfile() {
return Profile::staticGet($this->$id);
$profile = DB_DataObject::factory('profile');
$profile->id = $this->id;
if ($profile->find()) {
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