Fix check for cache value in JSCombiner
* fixes following log output, because there was empty string stored in the cache Invalid argument supplied for foreach() at lib/private/Template/JSCombiner.php#108 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
4f09dc71e0
commit
51e5c0766c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue