summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/http/request.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/appframework/http/request.php')
-rw-r--r--lib/private/appframework/http/request.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index cfd903bffe5..3e24eec37c8 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -410,7 +410,9 @@ class Request implements \ArrayAccess, \Countable, IRequest {
}
}
- $this->items['parameters'] = array_merge($this->items['parameters'], $params);
+ if (is_array($params)) {
+ $this->items['parameters'] = array_merge($this->items['parameters'], $params);
+ }
$this->contentDecoded = true;
}