Rename function to avoid duplicate
This commit is contained in:
parent
801a5180d6
commit
c06a78145c
@ -69,7 +69,7 @@ $required_fields = array(
|
||||
);
|
||||
|
||||
// Remove from required_fields all entries not configured in LDAP (empty) and duplicated
|
||||
$required_fields=array_unique(array_values(array_filter($required_fields, "dolValidElement")));
|
||||
$required_fields=array_unique(array_values(array_filter($required_fields, "dolValidElementType")));
|
||||
|
||||
|
||||
if (! isset($argv[1])) {
|
||||
@ -214,7 +214,7 @@ exit($error);
|
||||
* @param string $element Value to test
|
||||
* @return boolean True of false
|
||||
*/
|
||||
function dolValidElement($element)
|
||||
function dolValidElementType($element)
|
||||
{
|
||||
return (trim($element) != '');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user