mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
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:
commit
e0784c66ed
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue