From fb408cab76dba4677045b9603b15ea918a1ef4ea Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Fri, 2 Jul 2021 11:24:44 +0200 Subject: [PATCH] Fix notice issue in OptionsQuery --- src/Form/OptionsQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/OptionsQuery.php b/src/Form/OptionsQuery.php index bda3dac298..74d196e22a 100644 --- a/src/Form/OptionsQuery.php +++ b/src/Form/OptionsQuery.php @@ -117,7 +117,7 @@ protected function template(string $object, string $field, array $data) 'user' => '{{ user.username }}', ]; - if ($value === $defaults[$object]) { + if (isset($defaults[$object]) && $value === $defaults[$object]) { $result = Escape::html($result); } }