Profile_prefs::getAll fix prefs loop
DataObject::fetch doesn't return an object.
This commit is contained in:
parent
71119e4980
commit
90945e548b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user