X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile_prefs.php;h=bc7c400b890a2c8d3775b359256d0fd88c61a4e3;hb=cb8bf360c42ca8fce44fac62316d6d71d66d912e;hp=72a707cae86813149afad1297b1afd0c8a1e2bcb;hpb=29e1203609204cbcf0a6fd7b83147e2a178f5f99;p=quix0rs-gnu-social.git diff --git a/classes/Profile_prefs.php b/classes/Profile_prefs.php index 72a707cae8..bc7c400b89 100644 --- a/classes/Profile_prefs.php +++ b/classes/Profile_prefs.php @@ -85,17 +85,17 @@ class Profile_prefs extends Managed_DataObject static function getAll(Profile $profile) { try { - $prefs = self::listFind('profile_id', $profile->getID()); + $prefs = self::listFind('profile_id', array($profile->getID())); } catch (NoResultException $e) { return array(); } $list = array(); - while ($entry = $prefs->fetch()) { - if (!isset($list[$entry->namespace])) { - $list[$entry->namespace] = array(); + while ($prefs->fetch()) { + if (!isset($list[$prefs->namespace])) { + $list[$prefs->namespace] = array(); } - $list[$entry->namespace][$entry->topic] = $entry->data; + $list[$prefs->namespace][$prefs->topic] = $prefs->data; } return $list; }