Skip to content

Commit

Permalink
multiple line for easy reading
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispelzer committed Dec 15, 2023
1 parent 80b80b0 commit 769ff2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ function merge()
$merged = $merged->toArray();

// Add computed title tag
if (!empty($merged['base']) && !array_key_exists('title', !empty($merged['base']['meta']) ? $merged['base']['meta'] : [])) {
if (
!empty($merged['base']) &&
!array_key_exists('title', !empty($merged['base']['meta']) ? $merged['base']['meta'] : [])
) {
$merged['base']['meta']['title'] = stringify_page_title($merged['base']);
}

Expand Down

0 comments on commit 769ff2a

Please sign in to comment.