From 99bd8c670c3a1be5be944879ffed248c040c2770 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 7 Mar 2011 21:34:57 -0800 Subject: [PATCH] Fix a couple things --- plugins/ExtendedProfile/Profile_detail.php | 2 +- plugins/ExtendedProfile/extendedprofile.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/ExtendedProfile/Profile_detail.php b/plugins/ExtendedProfile/Profile_detail.php index 25eca4d09c..4b193e54ee 100644 --- a/plugins/ExtendedProfile/Profile_detail.php +++ b/plugins/ExtendedProfile/Profile_detail.php @@ -96,7 +96,7 @@ class Profile_detail extends Memcached_DataObject 'value' => DB_DATAOBJECT_STR, 'rel' => DB_DATAOBJECT_STR, - 'ref_profile' => DB_DATAOBJECT_ID, + 'ref_profile' => DB_DATAOBJECT_INT, 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL, 'modified' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL); diff --git a/plugins/ExtendedProfile/extendedprofile.php b/plugins/ExtendedProfile/extendedprofile.php index 7f69f90899..3be753b23f 100644 --- a/plugins/ExtendedProfile/extendedprofile.php +++ b/plugins/ExtendedProfile/extendedprofile.php @@ -35,8 +35,10 @@ class ExtendedProfile $detail = new Profile_detail(); $detail->profile_id = $this->profile->id; $detail->find(); - - while ($detail->get()) { + + $fields = array(); + + while ($detail->fetch()) { $fields[$detail->field][] = clone($detail); } return $fields;