Skip to content

Commit

Permalink
Use array_replace_recursive for context values
Browse files Browse the repository at this point in the history
A context array, user and password passed to constructor is leading to duplicated values for the context options.
  • Loading branch information
kesselb authored and yunosh committed Feb 17, 2021
1 parent 523c205 commit f683fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/ManageSieve.php
Expand Up @@ -273,7 +273,7 @@ public function connect(
$this->_params['port'] = $port;
}
if (isset($context)) {
$this->_params['context'] = array_merge_recursive(
$this->_params['context'] = array_replace_recursive(
$this->_params['context'],
$context
);
Expand Down

0 comments on commit f683fe1

Please sign in to comment.