From 06b1ee6067c2fd86a3e59b42ef77fd3af498dc5b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 16 Jul 2021 15:51:13 +1200 Subject: [PATCH] [REF] Fix functions to be protected I did some poking around & these function are not called outside the class Once we can see that we can consider updating to save 0 to the table, allowing a lot of simplification --- CRM/ACL/BAO/Cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/ACL/BAO/Cache.php b/CRM/ACL/BAO/Cache.php index af12925101..a181c6e09a 100644 --- a/CRM/ACL/BAO/Cache.php +++ b/CRM/ACL/BAO/Cache.php @@ -54,7 +54,7 @@ class CRM_ACL_BAO_Cache extends CRM_ACL_DAO_ACLCache { * * @return array */ - public static function retrieve($id) { + protected static function retrieve($id) { $query = " SELECT acl_id FROM civicrm_acl_cache @@ -81,7 +81,7 @@ SELECT acl_id * @param array $cache - key civicrm_acl.id - values is the details of the ACL. * */ - public static function store($id, &$cache) { + protected static function store($id, &$cache) { foreach ($cache as $aclID => $data) { $dao = new CRM_ACL_BAO_Cache(); if ($id) { -- 2.25.1