If for some reason the json can't be decoded it is not cached
Should fix #6898 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c91515cfed
commit
9cbb39511f
|
@ -104,6 +104,10 @@ class JSCombiner {
|
|||
}
|
||||
$deps = json_decode($deps, true);
|
||||
|
||||
if ($deps === NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ($deps as $file=>$mtime) {
|
||||
if (!file_exists($file) || filemtime($file) > $mtime) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue