Merge branch 'master' of gitlab.com:Chill-Projet/chill-bundles

This commit is contained in:
2023-11-30 12:15:47 +01:00
6 changed files with 16 additions and 10 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'];