Skip to content

Commit d7cae91

Browse files
authored
Update AutomaticServerPush.php
1 parent 7c3771c commit d7cae91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutomaticServerPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function bootstrap($app)
3737
// we have to parse ready tags
3838
// the better performance solution will be to override View
3939
// but that is a task for next version
40-
if ($view->cssFiles !== null && count($view->cssFiles) > 0) {
40+
if ($view->cssFiles !== null && is_array($view->cssFiles) && count($view->cssFiles) > 0) {
4141
$cssLinkTags = implode(' ', $view->cssFiles);
4242
preg_match_all('/href="([^"]*)"/', $cssLinkTags, $matches);
4343
if (array_key_exists(1, $matches)) {

0 commit comments

Comments
 (0)