Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Fix function calls in new cache and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Jun 13, 2019
1 parent 7a1f008 commit 2c528e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions info.xml
Expand Up @@ -13,8 +13,8 @@
<author>CiviCRM LLC</author>
<email>info@civicrm.org</email>
</maintainer>
<releaseDate>2019-06-11</releaseDate>
<version>2.7</version>
<releaseDate>2019-06-13</releaseDate>
<version>2.7.1</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.15</ver>
Expand Down
4 changes: 2 additions & 2 deletions multisite.php
Expand Up @@ -378,7 +378,7 @@ function _multisite_get_all_child_groups($groupID, $includeParent = TRUE) {

$cache = Civi::cache('decendantGroups');
if (!array_key_exists($groupID, $_cache)) {
$childGroups = $cache->getItem($groupID);
$childGroups = $cache->get($groupID);

if (empty($childGroups)) {
$childGroups = array();
Expand Down Expand Up @@ -414,7 +414,7 @@ function _multisite_get_all_child_groups($groupID, $includeParent = TRUE) {
}
}

$cache->setItem($groupID, $childGroups);
$cache->set($groupID, $childGroups);
}
$_cache[$groupID] = $childGroups;
}
Expand Down

0 comments on commit 2c528e1

Please sign in to comment.