mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
php3 fix, rename accounts->memberships() to accounts->membership() to avoid conflict with class var
This commit is contained in:
parent
de68820130
commit
8c570fcb19
@ -59,7 +59,7 @@
|
||||
{
|
||||
$account = CreateObject('phpgwapi.accounts',$_account_id);
|
||||
$userData = $account->read_repository();
|
||||
$userGroups = $account->memberships($_account_id);
|
||||
$userGroups = $account->membership($_account_id);
|
||||
$allGroups = $account->get_list('groups');
|
||||
|
||||
if ($userData['expires'] == -1)
|
||||
|
@ -140,7 +140,7 @@
|
||||
}
|
||||
|
||||
// Find out which groups they are members of
|
||||
$usergroups = $account->memberships(intval($account_id));
|
||||
$usergroups = $account->membership(intval($account_id));
|
||||
if (gettype($usergroups) != 'array')
|
||||
{
|
||||
$t->set_var('groups_select',lang('None'));
|
||||
|
@ -78,7 +78,7 @@
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
function memberships($accountid = '')
|
||||
function membership($accountid = '')
|
||||
{
|
||||
global $phpgw_info, $phpgw;
|
||||
$account_id = get_account_id($accountid);
|
||||
|
@ -522,7 +522,7 @@
|
||||
$db2 = $this->db;
|
||||
|
||||
$account_id = get_account_id($accountid,$this->account_id);
|
||||
$memberships = $phpgw->accounts->memberships($account_id);
|
||||
$memberships = $phpgw->accounts->membership($account_id);
|
||||
$sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and "
|
||||
. 'acl_account in ';
|
||||
$security = '('.$account_id;
|
||||
@ -572,7 +572,7 @@
|
||||
// $security = "('". $phpgw_info['user']['account_id'] ."'";
|
||||
$security = "('". $this->account_id ."'";
|
||||
$myaccounts = CreateObject('phpgwapi.accounts');
|
||||
$my_memberships = $myaccounts->memberships($this->account_id);
|
||||
$my_memberships = $myaccounts->membership($this->account_id);
|
||||
unset($myaccounts);
|
||||
@reset($my_memberships);
|
||||
while($my_memberships && list($key,$group) = each($my_memberships))
|
||||
|
@ -109,13 +109,13 @@
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
$this->debug_info[] = 'sql_search() is a depreciated function - use ACL instead';
|
||||
$this->debug_info[] = 'sql_search() is a deprecated function - use ACL instead';
|
||||
$s = '';
|
||||
if (!$owner)
|
||||
{
|
||||
$owner = $phpgw_info['user']['account_id'];
|
||||
}
|
||||
$groups = $phpgw->accounts->memberships(intval($owner));
|
||||
$groups = $phpgw->accounts->membership(intval($owner));
|
||||
if (gettype($groups) == 'array')
|
||||
{
|
||||
while ($group = each($groups))
|
||||
|
Loading…
Reference in New Issue
Block a user