Fix asset generation with an empty asset

This commit is contained in:
Jordi Boggiano 2012-04-19 11:46:36 +02:00
parent aebaece460
commit 3b2f5428c3

View File

@ -51,7 +51,7 @@ class PathPackage extends Package
$url = $this->applyVersion($path);
// apply the base path
if ($url && '/' != $url[0]) {
if ('/' !== substr($url, 0, 1)) {
$url = $this->basePath.$url;
}