Skip to content

Commit

Permalink
fix for when no valid link attributes are present
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo118 committed Apr 26, 2021
1 parent defb793 commit 2813934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Markdown/Excerpts.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static function ($carry, $item) {
);

// Valid attributes supported.
$valid_attributes = $grav['config']->get('system.pages.markdown.valid_link_attributes');
$valid_attributes = $grav['config']->get('system.pages.markdown.valid_link_attributes') ?? [];

$skip = [];
// Unless told to not process, go through actions.
Expand Down

0 comments on commit 2813934

Please sign in to comment.