[icinga-checkins] icinga.org: icingaweb2-module-director/master: GroupMembershipCache: add missing property

git at icinga.org git at icinga.org
Mon Oct 10 21:19:13 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 380fb0afe9e64abb7c22488859e4bdc5cb50e443
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=380fb0afe9e64abb7c22488859e4bdc5cb50e443

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon Oct 10 19:15:34 2016 +0000

GroupMembershipCache: add missing property

fixes #12884

---

 library/Director/Db/Cache/GroupMembershipCache.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/library/Director/Db/Cache/GroupMembershipCache.php b/library/Director/Db/Cache/GroupMembershipCache.php
index 5f5d0b5..2154de2 100644
--- a/library/Director/Db/Cache/GroupMembershipCache.php
+++ b/library/Director/Db/Cache/GroupMembershipCache.php
@@ -15,6 +15,8 @@ class GroupMembershipCache
 
     protected $memberships;
 
+    protected $membershipsById;
+
     /** @var Db Director database connection */
     protected $connection;
 
@@ -33,7 +35,7 @@ class GroupMembershipCache
     protected function loadAllMemberships()
     {
         $db = $this->connection->getDbAdapter();
-        $this->memberships = array();
+        $this->memberships = $this->membershipsById = array();
 
         $type  = $this->type;
         $table = $this->table;



More information about the icinga-checkins mailing list