From 17e95e63ca61110516bcb860b6312093a836eb48 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 25 Jun 2018 16:19:41 -0700 Subject: [PATCH] CRM_Contact_BAO_ContactType - Use PSR-16 compliant cache key --- CRM/Contact/BAO/ContactType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contact/BAO/ContactType.php b/CRM/Contact/BAO/ContactType.php index a299e9e591..cb13346f55 100644 --- a/CRM/Contact/BAO/ContactType.php +++ b/CRM/Contact/BAO/ContactType.php @@ -387,6 +387,7 @@ WHERE type.name IS NOT NULL $argString = $all ? 'CRM_CT_GSE_1' : 'CRM_CT_GSE_0'; $argString .= $isSeparator ? '_1' : '_0'; $argString .= $separator; + $argString = CRM_Core_BAO_Cache::cleanKey($argString); if (!array_key_exists($argString, $_cache)) { $cache = CRM_Utils_Cache::singleton(); $_cache[$argString] = $cache->get($argString); -- 2.25.1