Fixed: getting warnings in the aded or edit room type after enabling the cache in the BO.

This commit is contained in:
Amit sharma
2026-01-14 13:53:55 +05:30
parent 1474ec2c61
commit e7ebcd0e73

View File

@@ -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;