]> source.dussan.org Git - nextcloud-server.git/commitdiff
If for some reason the json can't be decoded it is not cached 7118/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 8 Nov 2017 11:37:35 +0000 (12:37 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 9 Nov 2017 08:50:57 +0000 (09:50 +0100)
Should fix #6898

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Template/JSCombiner.php

index 8254174bfc0516e4e57c1dafe92d55a889a1708d..3967da360feec5c13f936540ff02bcfb699316d3 100644 (file)
@@ -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;