Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'dev' of http://github.com/balupton/balphp into dev

* 'dev' of http://github.com/balupton/balphp:
  Added detection of a empty/failed compiled file in the headscriptbundler.
  • Loading branch information...
commit 7b79c8ecbb5c82c88a2875347ac085b6c8b55760 2 parents 65618f3 + 906769d
@balupton balupton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Bal/View/Helper/HeadScriptBundler.php
View
2  lib/Bal/View/Helper/HeadScriptBundler.php
@@ -196,7 +196,7 @@ public function toString ($indent = null) {
$compiledFilePath = $this->getCachePath().'/'.$compiledFileName;
# Get last modified time of cache file
- if ( is_file($compiledFilePath) ) {
+ if ( is_file($compiledFilePath) && filesize($compiledFilePath) ) {
$compiledFilemtime = filemtime($compiledFilePath);
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.