Fixed: getting warnings in the aded or edit room type after enabling the cache in the BO.
This commit is contained in:
4
classes/cache/Cache.php
vendored
4
classes/cache/Cache.php
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user