summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Manager.php')
-rw-r--r--apps/workflowengine/lib/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php
index f97d77f5983..0dbe7dbfc13 100644
--- a/apps/workflowengine/lib/Manager.php
+++ b/apps/workflowengine/lib/Manager.php
@@ -145,7 +145,7 @@ class Manager implements IManager {
$operations[$operation] = $operations[$row['class']] ?? [];
$operations[$operation][$entity] = $operations[$operation][$entity] ?? [];
- $operations[$operation][$entity] = array_unique(array_merge($operations[$operation][$entity], $eventNames));
+ $operations[$operation][$entity] = array_unique(array_merge($operations[$operation][$entity], $eventNames ?? []));
}
$result->closeCursor();
@@ -589,7 +589,7 @@ class Manager implements IManager {
$operation['checks'][] = $check;
}
- $operation['events'] = json_decode($operation['events'], true);
+ $operation['events'] = json_decode($operation['events'], true) ?? [];
return $operation;