diff --git a/lib/model/doctrine/Community.class.php b/lib/model/doctrine/Community.class.php index f1115df80..8188205c3 100644 --- a/lib/model/doctrine/Community.class.php +++ b/lib/model/doctrine/Community.class.php @@ -208,7 +208,7 @@ public function joinAllMembers($free = false) $conn = Doctrine::getTable('Member')->getConnection(); $query = 'SELECT id FROM '.Doctrine::getTable('Member')->getTableName().' m' . ' WHERE NOT EXISTS (SELECT * FROM '.Doctrine::getTable('CommunityMember')->getTableName().' cm WHERE m.id = cm.member_id AND cm.community_id = ?)' - . ' AND m.is_active = 1'; + . ' AND (m.is_active = 1 OR m.is_active IS NULL)'; $insertIds = $conn->fetchColumn($query, array($this->getId())); foreach ($insertIds as $memberId) {