Skip to content
Snippets Groups Projects
Commit 4e4a48c4 authored by Tim Schmidt's avatar Tim Schmidt Committed by Eli Stone
Browse files

Issue #3102829 by gooddev: Notice: Undefined index error: cache

parent 3ae886a2
No related branches found
No related tags found
No related merge requests found
Pipeline #34846 failed
......@@ -95,7 +95,7 @@ class Loader extends FilesystemLoader {
* Map of component filenames keyed by component handle.
*/
protected function listComponents($path) {
if ($this->twigConfig['cache'] && $cache = $this->cacheBackend->get($path)) {
if (isset($this->twigConfig['cache']) && $cache = $this->cacheBackend->get($path)) {
return $cache->data;
}
......@@ -108,7 +108,7 @@ class Loader extends FilesystemLoader {
$this->logger->error($exception->getMessage());
}
if ($this->twigConfig['cache']) {
if (isset($this->twigConfig['cache'])) {
$this->cacheBackend->set($path, $this->components);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment