Skip to content

Commit 7b11a9b

Browse files
fix: prevent warning when haven't this value
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent 519c67f commit 7b11a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)