mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Fix incorrect warning 'Group, Group is not a known user or group'
This commit is contained in:
parent
6d826f49eb
commit
34b64e7a7b
@ -155,10 +155,17 @@ class importexport_helper_functions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle groups listed as Group, <name>
|
// Handle groups listed as Group, <name>
|
||||||
if ( $account_lid[0] == ' ' && $account_id = $GLOBALS['egw']->accounts->name2id( trim($account_lid))) {
|
if ( $account_lids[$key][0] == ' ' && $account_id = $GLOBALS['egw']->accounts->name2id( $account_lid)) {
|
||||||
$account_ids[] = $account_id;
|
$account_ids[] = $account_id;
|
||||||
unset($account_lids[$key-1]);
|
unset($account_lids[$key-1]);
|
||||||
unset($account_lids[$key]);
|
unset($account_lids[$key]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// Group, <name> - remove the Group part
|
||||||
|
if($account_lid == 'Group')
|
||||||
|
{
|
||||||
|
unset($account_lids[$key]);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_account_lids = (is_array($_account_lids) ? $account_lids : implode(',',$account_lids));
|
$_account_lids = (is_array($_account_lids) ? $account_lids : implode(',',$account_lids));
|
||||||
|
Loading…
Reference in New Issue
Block a user