Merge pull request #7109 from nextcloud/fix_6898

If for some reason the json can't be decoded it is not cached
This commit is contained in:
Morris Jobke 2017-11-08 23:33:02 +01:00 committed by GitHub
commit e0784c66ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,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;