Skip to content

Commit 3178352

Browse files
committed
Fix: Check if $this->params['user'] is an array
1 parent 733515f commit 3178352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/ObjectStore/SwiftFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function getClient() {
122122
'handler' => HandlerStack::create()
123123
]);
124124

125-
if (isset($this->params['user']) && isset($this->params['user']['name'])) {
125+
if (isset($this->params['user']) && is_array($this->params['user']) && isset($this->params['user']['name'])) {
126126
if (!isset($this->params['scope'])) {
127127
throw new StorageAuthException('Scope has to be defined for V3 requests');
128128
}

0 commit comments

Comments
 (0)