Skip to content
Snippets Groups Projects
Commit 97bf30b3 authored by David Maus's avatar David Maus
Browse files

Use internal function to set new parameter array

* VuFindSearch/ParamBag.php (exchangeArray): Use internal function
  to set new parameter array.
parent 05f50fb8
No related merge requests found
...@@ -202,7 +202,10 @@ class ParamBag ...@@ -202,7 +202,10 @@ class ParamBag
public function exchangeArray(array $input) public function exchangeArray(array $input)
{ {
$current = $this->params; $current = $this->params;
$this->params = $input; $this->params = array();
foreach ($input as $key => $value) {
$this->set($key, $value);
}
return $current; return $current;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment