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:
commit
20f25f1b81
|
@ -111,7 +111,7 @@ class FlowOperations extends Controller {
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function prepareOperation(array $operation) {
|
protected function prepareOperation(array $operation) {
|
||||||
$checkIds = json_decode($operation['checks']);
|
$checkIds = json_decode($operation['checks'], true);
|
||||||
$checks = $this->manager->getChecks($checkIds);
|
$checks = $this->manager->getChecks($checkIds);
|
||||||
|
|
||||||
$operation['checks'] = [];
|
$operation['checks'] = [];
|
||||||
|
|
Loading…
Reference in New Issue