]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix a couple things
authorZach Copley <zach@status.net>
Tue, 8 Mar 2011 05:34:57 +0000 (21:34 -0800)
committerZach Copley <zach@status.net>
Tue, 8 Mar 2011 05:34:57 +0000 (21:34 -0800)
plugins/ExtendedProfile/Profile_detail.php
plugins/ExtendedProfile/extendedprofile.php

index 25eca4d09c4b91e5a410bb38d0a0fb6987440f8a..4b193e54ee6030cf9764814acbb0c0d9128f1ef6 100644 (file)
@@ -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);
index 7f69f90899237e479cb8e09d276352a41d4d5343..3be753b23fda6e59dfa0c7cd83158552af1bd65e 100644 (file)
@@ -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;