Skip to content
Snippets Groups Projects
Commit bc7b736d authored by Prasad's avatar Prasad
Browse files

Fixed cache data variable initialization

parent caef89f8
No related branches found
No related tags found
2 merge requests!1233E_ALL fixes across modules for PHP 8.x,!1194Master
...@@ -129,9 +129,9 @@ class VTCacheUtils { ...@@ -129,9 +129,9 @@ class VTCacheUtils {
// If modulefields are already loaded then no need of this again // If modulefields are already loaded then no need of this again
if(!$modulefields){ if(!$modulefields){
$modulefields = array();
$fieldInfo = Vtiger_Cache::get('ModuleFields',$tabid); $fieldInfo = Vtiger_Cache::get('ModuleFields',$tabid);
if($fieldInfo){ if($fieldInfo){
$modulefields = array();
foreach($fieldInfo as $block => $blockFields){ foreach($fieldInfo as $block => $blockFields){
foreach ($blockFields as $field){ foreach ($blockFields as $field){
if(in_array($field->get('presence'), $presencein)) { if(in_array($field->get('presence'), $presencein)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment