From e7ebcd0e735df3ba673a9d0a2b6a541d2c6623c2 Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Wed, 14 Jan 2026 13:53:55 +0530 Subject: [PATCH] Fixed: getting warnings in the aded or edit room type after enabling the cache in the BO. --- classes/cache/Cache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;