From 9fd2f995a7ef8e17943239dfab9099514bff4edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=B6rner?= Date: Mon, 25 Nov 2013 14:09:04 +0100 Subject: [PATCH] prevent notice error --- Services/AssetsLocator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/AssetsLocator.php b/Services/AssetsLocator.php index 98bf88c..0cbcd77 100755 --- a/Services/AssetsLocator.php +++ b/Services/AssetsLocator.php @@ -51,7 +51,7 @@ public function convertFilePath($path) $parts = explode('/', trim($path, '/')); // Not an ordinary file path - if ($parts[0][0] !== '@' && $parts[0] !== 'bundles') { + if ($parts[0] == false || ($parts[0][0] !== '@' && $parts[0] !== 'bundles')) { return $path; } @@ -86,4 +86,4 @@ public function convertFilePath($path) return $url; } -} \ No newline at end of file +}