Trim any extra space off name / account login, it breaks the searching

This commit is contained in:
Nathan Gray 2011-04-18 15:09:03 +00:00
parent cabcd99149
commit 61862bf50d

View File

@ -105,6 +105,8 @@ class importexport_helper_functions {
$skip = false; $skip = false;
continue; continue;
} }
$account_lid = trim($account_lid);
// Handle any IDs that slip in // Handle any IDs that slip in
if(is_numeric($account_lid) && $GLOBALS['egw']->accounts->id2name($account_lid)) { if(is_numeric($account_lid) && $GLOBALS['egw']->accounts->id2name($account_lid)) {
$account_ids[] = (int)$account_lid; $account_ids[] = (int)$account_lid;