diff --git a/classes/cache/Cache.php b/classes/cache/Cache.php index aa91c3119..fde022518 100644 --- a/classes/cache/Cache.php +++ b/classes/cache/Cache.php @@ -231,7 +231,9 @@ abstract class CacheCore if ($ttl < 0) { $ttl = 0; } - + if(!is_array($this->keys)){ + $this->keys = []; + } $this->keys[$key] = ($ttl == 0) ? 0 : time() + $ttl; $this->_writeKeys(); return true;