mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
fix for php4'isms
This commit is contained in:
parent
2d8260f332
commit
7f551f895e
@ -55,12 +55,12 @@
|
||||
function memberships($account_id = False)
|
||||
{
|
||||
global $phpgw_info, $phpgw;
|
||||
if ($account_id == ''){ $account_id = $phpgw_info['user']['account_id']; }
|
||||
if ($account_id == False){ $account_id = $phpgw_info['user']['account_id']; }
|
||||
elseif (gettype($account_id) == 'string') { $account_id = $this->name2id($account_id); }
|
||||
|
||||
$security_equals = Array();
|
||||
$security_equals = $phpgw->acl->get_location_list_for_id('phpgw_group', 1, intval($account_id));
|
||||
if (!$security_equals) { return False; }
|
||||
if ($security_equals == False) { return False; }
|
||||
for ($idx=0; $idx<count($security_equals); $idx++){
|
||||
$name = $this->id2name(intval($security_equals[$idx]));
|
||||
$this->memberships[] = Array('account_id' => $security_equals[$idx], 'account_name' => "$name");
|
||||
@ -71,7 +71,7 @@
|
||||
function members ($account_id = False)
|
||||
{
|
||||
global $phpgw_info, $phpgw;
|
||||
if ($account_id == ''){ $account_id = $phpgw_info['user']['account_id']; }
|
||||
if ($account_id == False){ $account_id = $phpgw_info['user']['account_id']; }
|
||||
elseif (gettype($account_id) == 'string') { $account_id = $this->name2id($account_id); }
|
||||
|
||||
$security_equals = Array();
|
||||
|
Loading…
Reference in New Issue
Block a user