Skip to content

Commit 5fa2e18

Browse files
authored
[5.x] Fix bard undefined href error (#11351)
1 parent bcd529b commit 5fa2e18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Fieldtypes/Bard/LinkMark.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ public function addAttributes()
2525
return [
2626
'href' => [
2727
'renderHTML' => function ($attributes) {
28-
$href = $attributes->href;
29-
if (! isset($href)) {
28+
if (! isset($attributes->href)) {
3029
return null;
3130
}
3231

3332
return [
34-
'href' => $this->convertHref($href) ?? '',
33+
'href' => $this->convertHref($attributes->href) ?? '',
3534
];
3635
},
3736
],

0 commit comments

Comments
 (0)