mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-16 10:24:27 +02:00
Module: Parse requirements in metadata correctly
This commit is contained in:
parent
57e8e41089
commit
d78bb02b41
@ -829,8 +829,7 @@ class Module
|
|||||||
if (preg_match('/^([\w\-\/]+)\s+\((.+)\)$/', $part, $m)) {
|
if (preg_match('/^([\w\-\/]+)\s+\((.+)\)$/', $part, $m)) {
|
||||||
$metadata->{$key}[$m[1]] = $m[2];
|
$metadata->{$key}[$m[1]] = $m[2];
|
||||||
} else {
|
} else {
|
||||||
// TODO: FAIL?
|
$metadata->{$key}[$part] = true;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user