scripts and styles arrays must always be defined

pull/18/head
Frode Petterson 2016-04-12 11:37:55 +02:00
parent 127dc4f0e1
commit 7474916f3a
1 changed files with 3 additions and 3 deletions

View File

@ -1971,9 +1971,9 @@ class H5PCore {
// Get aggregated files for assets // Get aggregated files for assets
$key = self::getDependenciesHash($dependencies); $key = self::getDependenciesHash($dependencies);
$files = $this->fs->getCachedAssets($key); $cachedAssets = $this->fs->getCachedAssets($key);
if ($files) { if ($cachedAssets !== NULL) {
return $files; // Using cached assets return array_merge($files, $cachedAssets); // Using cached assets
} }
} }