summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/JSCombiner.php
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2017-04-03 11:27:39 +0200
committerGitHub <noreply@github.com>2017-04-03 11:27:39 +0200
commitcbe44043be9436e4efac5dd9688345ae474feeb2 (patch)
treed568800498eae28f37e79218af2f51029489a10b /lib/private/Template/JSCombiner.php
parent47e342c730778d1e708c0afcf801581d6be02726 (diff)
parent51e5c0766ccead6619c7334b739672f56d7a2829 (diff)
downloadnextcloud-server-cbe44043be9436e4efac5dd9688345ae474feeb2.tar.gz
nextcloud-server-cbe44043be9436e4efac5dd9688345ae474feeb2.zip
Merge pull request #4131 from nextcloud/fix-jscombiner
Fix check for cache value in JSCombiner
Diffstat (limited to 'lib/private/Template/JSCombiner.php')
-rw-r--r--lib/private/Template/JSCombiner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSCombiner.php b/lib/private/Template/JSCombiner.php
index 77c46a5e45e..604cd2cceb7 100644
--- a/lib/private/Template/JSCombiner.php
+++ b/lib/private/Template/JSCombiner.php
@@ -98,7 +98,7 @@ class JSCombiner {
$fileName = str_replace('.json', '.js', $fileName) . '.deps';
try {
$deps = $this->depsCache->get($folder->getName() . '-' . $fileName);
- if ($deps === null) {
+ if ($deps === null || $deps === '') {
$depFile = $folder->getFile($fileName);
$deps = $depFile->getContent();
$this->depsCache->set($folder->getName() . '-' . $fileName, $deps);