git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 90945e54 authored by chimo's avatar chimo

Profile_prefs::getAll fix prefs loop

DataObject::fetch doesn't return an object.
parent 71119e49
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment