Skip to content

Commit

Permalink
Fix notice if field is empty (Bug #13872).
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 25, 2015
1 parent cad459b commit 8fcfced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Config.php
Expand Up @@ -769,7 +769,7 @@ protected function _configLDAP($ctx, $node = null,
'desc' => 'LDAP server(s)/hostname(s)',
'default' => implode(',', $this->_default(
$ctx . '|hostspec',
$node ? ($xpath->evaluate('string(configstring[@name="hostspec"])', $node) ?: '') : ''
$node ? ($xpath->evaluate('string(configstring[@name="hostspec"])', $node) ?: array()) : array()
))
),

Expand Down

0 comments on commit 8fcfced

Please sign in to comment.