forked from GNUsocial/gnu-social
Profile_prefs::getAll fix call to listFind
2nd argument needs to be an array
This commit is contained in:
parent
bb0faaea56
commit
71119e4980
@ -85,7 +85,7 @@ class Profile_prefs extends Managed_DataObject
|
|||||||
static function getAll(Profile $profile)
|
static function getAll(Profile $profile)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$prefs = self::listFind('profile_id', $profile->getID());
|
$prefs = self::listFind('profile_id', array($profile->getID()));
|
||||||
} catch (NoResultException $e) {
|
} catch (NoResultException $e) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user