filter non-existing types
This commit is contained in:
parent
52ca63ae28
commit
3eb593daa4
|
@ -346,6 +346,16 @@ class LAMConfig {
|
|||
}
|
||||
fclose($file);
|
||||
}
|
||||
// check types
|
||||
$allTypes = getTypes();
|
||||
$activeTypes = $this->get_ActiveTypes();
|
||||
for ($i = 0; $i < sizeof($activeTypes); $i++) {
|
||||
if (!in_array($activeTypes[$i], $allTypes)) {
|
||||
unset($activeTypes[$i]);
|
||||
}
|
||||
}
|
||||
$activeTypes = array_values($activeTypes);
|
||||
$this->set_ActiveTypes($activeTypes);
|
||||
// check modules
|
||||
$scopes = $this->get_ActiveTypes();
|
||||
for ($s = 0; $s < sizeof($scopes); $s++) {
|
||||
|
|
Loading…
Reference in New Issue