Fixed exception during wcf installation
authorMarcel Werk <burntime@woltlab.com>
Sat, 5 Nov 2016 13:21:04 +0000 (14:21 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 5 Nov 2016 13:21:04 +0000 (14:21 +0100)
wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php

index e057b0ebc3ab0a9bb74efc809c468ded01d99fbc..1a9000d0fa8f133a178ae8eef99c5a06fc5357cd 100644 (file)
@@ -83,7 +83,7 @@ class EventListenerCacheBuilder extends AbstractCacheBuilder {
                $data = parent::getData($parameters, $arrayIndex);
                
                // work-around for update from 2.1 (changed cache structure :-()
-               if (is_array($data['inheritedActions']['admin']['wcf\page\AbstractPage']['readParameters'][0])) {
+               if (isset($data['inheritedActions']['admin']['wcf\page\AbstractPage']['readParameters'][0]) && is_array($data['inheritedActions']['admin']['wcf\page\AbstractPage']['readParameters'][0])) {
                        $index = CacheHandler::getInstance()->getCacheIndex($parameters);
                        $data = $this->cache[$index] = $this->rebuild($parameters);
                        $this->reset();