Skip to content

Commit

Permalink
Fixed the setConfig to work with array parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Dec 31, 2011
1 parent b5be728 commit 0afbde3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ public function response() {
*/
public function setConfig($param, $value) {
if (isset($this->config[$param])) {
$this->config[$param] = $value;
if (is_array($this->config[$param]) && is_array($value)) {
$this->config[$param] = array_merge($this->config[$param], $value);
}
else {
$this->config[$param] = $value;
}
}
return $this;
}
Expand Down

0 comments on commit 0afbde3

Please sign in to comment.