fixed missing $types

This commit is contained in:
Roland Gruber 2016-12-28 19:51:48 +01:00
parent 294ab941b1
commit cf872b330c
1 changed files with 7 additions and 5 deletions

View File

@ -62,11 +62,13 @@ if (!is_array($classes)) {
}
else {
// loop for active account types
for ($t = 0; $t < sizeof($types); $t++) {
$modules = $_SESSION['config']->get_AccountModules($types[$t]);
$container->addElement(new htmlSubTitle(LAM\TYPES\getTypeAlias($types[$t])), true);
$typeManager = new \LAM\TYPES\TypeManager();
$types = $typeManager->getConfiguredTypes();
foreach ($types as $type) {
$modules = $_SESSION['config']->get_AccountModules($type->getId());
$container->addElement(new htmlSubTitle($type->getAlias()), true);
for ($m = 0; $m < sizeof($modules); $m++) {
$error = checkSchemaForModule($modules[$m], $types[$t]);
$error = checkSchemaForModule($modules[$m], $type->getScope());
$message = _("No problems found.");
$icon = '../../graphics/pass.png';
if ($error != null) {
@ -74,7 +76,7 @@ else {
$message = $error;
}
// module name
$container->addElement(new htmlOutputText(getModuleAlias($modules[$m], $types[$t])));
$container->addElement(new htmlOutputText(getModuleAlias($modules[$m], $type->getScope())));
$container->addElement(new htmlSpacer('10px', null));
// icon
$container->addElement(new htmlImage($icon));