Merge pull request #10294 from nextcloud/bugfix/fac-104/expected-array-got-object

Make sure to always use an array as parameter
This commit is contained in:
Morris Jobke 2018-07-19 11:07:00 +02:00 committed by GitHub
commit 20f25f1b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class FlowOperations extends Controller {
* @return array
*/
protected function prepareOperation(array $operation) {
$checkIds = json_decode($operation['checks']);
$checkIds = json_decode($operation['checks'], true);
$checks = $this->manager->getChecks($checkIds);
$operation['checks'] = [];