From d7cae91576ab1a383e501f5764c54b8e0fa0080b Mon Sep 17 00:00:00 2001 From: Alexander Kozhevnikov Date: Wed, 8 Nov 2017 16:47:07 +0300 Subject: [PATCH] Update AutomaticServerPush.php --- src/AutomaticServerPush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutomaticServerPush.php b/src/AutomaticServerPush.php index 7b45397..1f1ce90 100644 --- a/src/AutomaticServerPush.php +++ b/src/AutomaticServerPush.php @@ -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)) {