Skip to content

Commit

Permalink
cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Aug 8, 2022
1 parent 89fa7d7 commit 8602938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ public static function getCacheKey($cid) {
$key = Civi::service('settings_manager')
->getBagByContact(NULL, $cid)
->get('navigation');
if (strlen($key) !== self::CACHE_KEY_STRLEN) {
if (strlen($key ?? '') !== self::CACHE_KEY_STRLEN) {
$key = self::resetNavigation($cid);
}
return $key;
Expand Down

0 comments on commit 8602938

Please sign in to comment.