Make sure the flags are always array

[MAILPOET-2716]
This commit is contained in:
Pavel Dohnal
2020-04-22 11:54:44 +02:00
committed by Veljko V
parent 6b5c0b706f
commit 171d2e52bf

View File

@@ -36,6 +36,9 @@ class FeatureFlagsController {
),
$flags
);
if ($flagsMap === false) {
$flagsMap = [];
}
$output = [];
foreach ($this->featuresController->getDefaults() as $name => $default) {