LDAP: check array with isset first to avoid warnings about undefined index
This commit is contained in:
parent
83f0c8ce61
commit
a28df74ee5
1 changed files with 2 additions and 1 deletions
|
@ -295,7 +295,8 @@ class Connection {
|
|||
|
||||
foreach($config as $parameter => $value) {
|
||||
if(($parameter == 'homeFolderNamingRule'
|
||||
|| $params[$parameter] == 'homeFolderNamingRule')
|
||||
|| (isset($params[$parameter])
|
||||
&& $params[$parameter] == 'homeFolderNamingRule'))
|
||||
&& !empty($value)) {
|
||||
$value = 'attr:'.$value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue