Skip to content
Snippets Groups Projects
Commit a28df74e authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: check array with isset first to avoid warnings about undefined index

parent 83f0c8ce
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment