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
seamuslee001 committed Jun 13, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7a1f008 commit 2c528e1
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</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>
4 changes: 2 additions & 2 deletions multisite.php
Original file line number Diff line number Diff line change
@@ -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();
@@ -414,7 +414,7 @@ function _multisite_get_all_child_groups($groupID, $includeParent = TRUE) {
}
}

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

0 comments on commit 2c528e1

Please sign in to comment.