From: Chimo Date: Thu, 17 Dec 2015 14:58:06 +0000 (+0000) Subject: Profile_prefs::getAll fix prefs loop X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90945e548b4f0809981ebf8fdd6bb7ef5300cb7a;p=quix0rs-gnu-social.git Profile_prefs::getAll fix prefs loop DataObject::fetch doesn't return an object. --- diff --git a/classes/Profile_prefs.php b/classes/Profile_prefs.php index 996fc1b6b6..bc7c400b89 100644 --- a/classes/Profile_prefs.php +++ b/classes/Profile_prefs.php @@ -91,11 +91,11 @@ class Profile_prefs extends Managed_DataObject } $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; }