Fix error on listEvaluation

- force default calcDate
- Export / UserHelper: handle case when a single user is given, when we expect more than one user
This commit is contained in:
2023-11-29 22:17:20 +01:00
parent a344f36592
commit fffc4a9c33
3 changed files with 14 additions and 3 deletions

View File

@@ -92,6 +92,11 @@ class UserHelper
}
$asStrings = [];
if (array_key_exists('uid', $decoded) || is_numeric($decoded)) {
// this is a single value. We have to wrap it into an array
$decoded = [$decoded];
}
foreach ($decoded as $userId) {
if (is_array($userId)) {
$uid = $userId['uid'];