From 95717c2b16a1cdaae59a3a1c40412b4ffc5a0764 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 15:20:01 -0400 Subject: [PATCH] change how the user profile is fetched darcs-hash:20080517192001-84dde-fa2b16b7aeacab52c7697e14182fc72d2022bfcc.gz --- classes/User.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.39.5