Skip to content

Commit 903976f

Browse files
authored
Merge pull request #4555 from LibreSign/fix/prevent-warning-when-have-not-this-value
fix: prevent warning when haven't this value
2 parents 16fc75e + c713f9b commit 903976f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/IdentifyMethod/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function isEnabledByDefault(): bool {
133133
}
134134

135135
// Remove not enabled
136-
$config = array_filter($config, fn ($i) => $i['enabled']);
136+
$config = array_filter($config, fn ($i) => isset($i['enabled']) && $i['enabled'] ? true : false);
137137

138138
$current = array_reduce($config, function ($carry, $config) {
139139
if ($config['name'] === $this->name) {

0 commit comments

Comments
 (0)