From: Evan Prodromou Date: Sat, 17 May 2008 19:20:01 +0000 (-0400) Subject: change how the user profile is fetched X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95717c2b16a1cdaae59a3a1c40412b4ffc5a0764;p=quix0rs-gnu-social.git change how the user profile is fetched darcs-hash:20080517192001-84dde-fa2b16b7aeacab52c7697e14182fc72d2022bfcc.gz --- diff --git a/classes/User.php b/classes/User.php index 9453096383..8986053c58 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) {