Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
prevent notice error
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Körner committed Nov 25, 2013
1 parent f0f0e71 commit 9fd2f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/AssetsLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -86,4 +86,4 @@ public function convertFilePath($path)

return $url;
}
}
}

0 comments on commit 9fd2f99

Please sign in to comment.