Avoid duplicate parsing of usernames with [login]

This commit is contained in:
Nathan Gray 2013-06-03 19:24:05 +00:00
parent f254a90613
commit 73cba1f328

View File

@ -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