diff options
Diffstat (limited to 'framework/Web/TAssetManager.php')
-rw-r--r-- | framework/Web/TAssetManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index 6a7d8ad8..267505c7 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -154,7 +154,7 @@ class TAssetManager extends TModule {
if(isset($this->_published[$path]))
return $this->_published[$path];
- else if(($fullpath=realpath($path))===false)
+ else if(empty($path) || ($fullpath=realpath($path))===false)
throw new TInvalidDataValueException('assetmanager_filepath_invalid',$path);
else if(is_file($fullpath))
{
|