Skip to content

Commit

Permalink
Fix notice issue in OptionsQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jul 2, 2021
1 parent f5ead62 commit fb408ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/OptionsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit fb408ca

Please sign in to comment.