This commit is contained in:
Yuri Kuznetsov
2022-12-23 11:29:50 +02:00
parent 432d45e122
commit a97c642d3b
@@ -177,15 +177,15 @@ class LanguageService
*/
private function unsetEmpty(array &$data, string $scope): void
{
if ($data[$scope]['options'] === []) {
if (($data[$scope]['options'] ?? null) === []) {
unset($data[$scope]['options']);
}
if ($data[$scope]['fields'] === []) {
if (($data[$scope]['fields'] ?? null) === []) {
unset($data[$scope]['fields']);
}
if ($data[$scope]['links'] === []) {
if (($data[$scope]['links'] ?? null) === []) {
unset($data[$scope]['links']);
}
}