diff --git a/preferences/settings.php b/preferences/settings.php index a3a22ee60f..f3b6726364 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -35,7 +35,9 @@ } } - $memberships = $phpgw->accounts->memberships($owner); + $acct = CreateObject('phpgwapi.accounts'); + $memberships = $acct->membership($owner); + unset($acct); for ($k=0;$kget_app_list_for_id('run',1,$memberships[$k]['account_id']);