fixed exception

This commit is contained in:
Roland Gruber 2022-09-05 21:07:31 +02:00
parent 8978e9361c
commit 0aeb5d696b
2 changed files with 7 additions and 1 deletions

View file

@ -293,7 +293,10 @@ class ConfiguredType {
*/
public function getModules() {
$typeSettings = $this->typeManager->getConfig()->get_typeSettings();
$modules = !empty($typeSettings['modules_' . $this->getId()]) ? $typeSettings['modules_' . $this->getId()] : '';
if (empty($typeSettings['modules_' . $this->getId()])) {
return array();
}
$modules = $typeSettings['modules_' . $this->getId()];
return explode(',', $modules);
}