Make sure to always use an array as parameter

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-07-19 10:38:15 +02:00
parent b7e32df660
commit 1e137a85b8
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
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'] = [];