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