summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-08-28 18:11:42 +0200
committerRobin Appelman <robin@icewind.nl>2018-08-28 18:11:42 +0200
commitc0a283fefb166e7ca09ef74898564fdd968cc2b1 (patch)
treef29d04af6bcae890f4dcd4215882c737a4f8a1be /lib
parentc6b1c21b8fd53fe524e38306cf8526f2eff4ad61 (diff)
downloadnextcloud-server-c0a283fefb166e7ca09ef74898564fdd968cc2b1.tar.gz
nextcloud-server-c0a283fefb166e7ca09ef74898564fdd968cc2b1.zip
ensure we always return an array from `Request::getParams`
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Http/Request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index 86ba884141f..0485d178b49 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -358,7 +358,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
* @return array the array with all parameters
*/
public function getParams(): array {
- return $this->parameters;
+ return is_array($this->parameters) ? $this->parameters : [];
}
/**