Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

set default extras as empty array to prevent compact() errors #170

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Helper/HeadLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ public function createDataStylesheet(array $args)
$media = 'screen';
$conditionalStylesheet = false;
$href = array_shift($args);
$extras = [];

if ($this->isDuplicateStylesheet($href)) {
return false;
Expand Down Expand Up @@ -452,6 +453,7 @@ public function createDataAlternate(array $args)
$href = array_shift($args);
$type = array_shift($args);
$title = array_shift($args);
$extras = [];

if ($args && is_array($args[0])) {
$extras = array_shift($args);
Expand Down