Commit 9379d507 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Fix php8.1 issues

parent 15503c3b
......@@ -76,14 +76,24 @@ class RegistrationService implements SingletonInterface {
$accessGroup['entities'] = [];
foreach ($entitiesConfiguration as $entity => $entityConfiguration) {
$writeFields = GeneralUtility::trimExplode(',', $entityConfiguration['write'], TRUE);
$readFields = GeneralUtility::trimExplode(',', $entityConfiguration['read'], TRUE);
if(isset($entityConfiguration['write'])) {
$writeFields = GeneralUtility::trimExplode(',', $entityConfiguration['write'], TRUE);
}
else {
$writeFields = [];
}
if(isset($entityConfiguration['read'])) {
$readFields = GeneralUtility::trimExplode(',', $entityConfiguration['read'], TRUE);
}
else {
$readFields = [];
}
$accessGroup['entities'][$entity] = [
'write' => $writeFields,
'read' => array_merge($writeFields, $readFields),
'httpPermissions' => $this->getHttpPermissionsConfiguration($entityConfiguration),
'classFQN' => $entityConfiguration['classFQN']
'classFQN' => isset($entityConfiguration['classFQN']) ? $entityConfiguration['classFQN']: ''
];
}
......@@ -103,7 +113,7 @@ class RegistrationService implements SingletonInterface {
'patchWithIdentifier' => FALSE, 'postWithIdentifier' => FALSE];
$httpPermissions = [];
if (is_array($configuration['httpPermissions'])) {
if (isset($configuration['httpPermissions']) && is_array($configuration['httpPermissions'])) {
$httpPermissions = array_intersect_key($configuration['httpPermissions'], $defaultHttpPermissions);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment