From bc7b736d8a2de986543e62b587155e4d5aacaa53 Mon Sep 17 00:00:00 2001 From: prasad <prasad@vtiger.com> Date: Tue, 7 May 2024 05:34:58 +0530 Subject: [PATCH] Fixed cache data variable initialization --- include/utils/VTCacheUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/VTCacheUtils.php b/include/utils/VTCacheUtils.php index 579ee771d..1134965ef 100644 --- a/include/utils/VTCacheUtils.php +++ b/include/utils/VTCacheUtils.php @@ -129,9 +129,9 @@ class VTCacheUtils { // If modulefields are already loaded then no need of this again if(!$modulefields){ - $modulefields = array(); $fieldInfo = Vtiger_Cache::get('ModuleFields',$tabid); if($fieldInfo){ + $modulefields = array(); foreach($fieldInfo as $block => $blockFields){ foreach ($blockFields as $field){ if(in_array($field->get('presence'), $presencein)) { -- GitLab