Fix a couple things
This commit is contained in:
parent
be53b94bfd
commit
99bd8c670c
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user