Skip to content

Commit

Permalink
Fix notice issue in OptionsQuery
Browse files Browse the repository at this point in the history
bastianallgeier committed Jul 2, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
bastianallgeier Bastian Allgeier
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
@@ -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);
}
}

0 comments on commit fb408ca

Please sign in to comment.