diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-30 21:07:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 21:07:49 +0200 |
commit | 625c81bd11690ccad99529e59fffe08e4a322b0e (patch) | |
tree | 4f7ef42b5531e38c8431eb7e3dfe1d538a1081de /lib | |
parent | f393cb71cedb2324fdbef488dd16ea72af8c61fe (diff) | |
parent | c0a283fefb166e7ca09ef74898564fdd968cc2b1 (diff) | |
download | nextcloud-server-625c81bd11690ccad99529e59fffe08e4a322b0e.tar.gz nextcloud-server-625c81bd11690ccad99529e59fffe08e4a322b0e.zip |
Merge pull request #10906 from nextcloud/request-params-array
ensure we always return an array from `Request::getParams`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 2 |
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 : []; } /** |