Skip to content

Commit

Permalink
Update AutomaticServerPush.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bethrezen authored Nov 8, 2017
1 parent 7c3771c commit d7cae91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutomaticServerPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function bootstrap($app)
// we have to parse ready tags
// the better performance solution will be to override View
// but that is a task for next version
if ($view->cssFiles !== null && count($view->cssFiles) > 0) {
if ($view->cssFiles !== null && is_array($view->cssFiles) && count($view->cssFiles) > 0) {
$cssLinkTags = implode(' ', $view->cssFiles);
preg_match_all('/href="([^"]*)"/', $cssLinkTags, $matches);
if (array_key_exists(1, $matches)) {
Expand Down

0 comments on commit d7cae91

Please sign in to comment.