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); } }