mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-05 19:42:31 +02:00
fixed exception
This commit is contained in:
parent
8978e9361c
commit
0aeb5d696b
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue