fetch_readaccess_by_readaccess(0); $ug_data = C::t('common_usergroup')->fetch_all(array_keys($gf_data)); foreach($gf_data as $key => $datarow) { if(!$ug_data[$key]['groupid']) { continue; } $datarow['grouptitle'] = $ug_data[$key]['grouptitle']; $data[] = $datarow; } savecache('groupreadaccess', $data); } ?>