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();
|
$list = array();
|
||||||
while ($entry = $prefs->fetch()) {
|
while ($prefs->fetch()) {
|
||||||
if (!isset($list[$entry->namespace])) {
|
if (!isset($list[$prefs->namespace])) {
|
||||||
$list[$entry->namespace] = array();
|
$list[$prefs->namespace] = array();
|
||||||
}
|
}
|
||||||
$list[$entry->namespace][$entry->topic] = $entry->data;
|
$list[$prefs->namespace][$prefs->topic] = $prefs->data;
|
||||||
}
|
}
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user