mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
Fix: Check if $this->params['user'] is an array
Signed-off-by: William Pain <pain.william@gmail.com>
This commit is contained in:
parent
34226642c4
commit
130c094df0
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ class SwiftFactory {
|
|||
'handler' => HandlerStack::create()
|
||||
]);
|
||||
|
||||
if (isset($this->params['user']) && isset($this->params['user']['name'])) {
|
||||
if (isset($this->params['user']) && is_array($this->params['user']) && isset($this->params['user']['name'])) {
|
||||
if (!isset($this->params['scope'])) {
|
||||
throw new StorageAuthException('Scope has to be defined for V3 requests');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue