Skip to content

Commit 3b71f28

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

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
@@ -149,7 +149,7 @@ private function isEnabledByDefault(): bool {
149149
}
150150

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

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

0 commit comments

Comments
 (0)