From 73cba1f328cb4efcae7d067ddadaffaf2222a38b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Jun 2013 19:24:05 +0000 Subject: [PATCH] Avoid duplicate parsing of usernames with [login] --- importexport/inc/class.importexport_helper_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index fa5bec2fc3..86074332e7 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -180,8 +180,8 @@ class importexport_helper_functions { continue; } } - $_account_lids = (is_array($_account_lids) ? $account_lids : implode(',',$account_lids)); - return is_array( $_account_lids ) ? $account_ids : implode( ',', (array)$account_ids ); + $_account_lids = (is_array($_account_lids) ? $account_lids : implode(',',array_unique($account_lids))); + return is_array( $_account_lids ) ? array_unique($account_ids) : implode( ',', array_unique((array)$account_ids )); } // end of member function account_lid2id