From 34b64e7a7b66d1a35100857aa5f4717270eff0e5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 Jan 2013 16:14:37 +0000 Subject: [PATCH] Fix incorrect warning 'Group, Group is not a known user or group' --- .../inc/class.importexport_helper_functions.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index ff7b3c2516..0244e70ce8 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -155,10 +155,17 @@ class importexport_helper_functions { } // Handle groups listed as Group, - 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; unset($account_lids[$key-1]); unset($account_lids[$key]); + continue; + } + // Group, - remove the Group part + if($account_lid == 'Group') + { + unset($account_lids[$key]); + continue; } } $_account_lids = (is_array($_account_lids) ? $account_lids : implode(',',$account_lids));