$list[$i] = $login;
}
}
- return $list;
+ return array_unique($list);
}
return null;
}
private static function stripBadChars($text)
{
- return str_replace(array(' ', "'"), array('-', ''),
+ return str_replace(array(' ', "'", '+'), array('-', '', '_'),
strtolower(stripslashes(replace_accent(trim($text)))));
}