diff --git a/db_objects/family.class.php b/db_objects/family.class.php index 99e376d4..a9c19605 100644 --- a/db_objects/family.class.php +++ b/db_objects/family.class.php @@ -345,8 +345,10 @@ function printCustomSummary($showMembersCallback) function getMemberData() { + //$objectType = $GLOBALS['user_system']->getCurrentUser() ? 'person' : 'member'; + $restriction = $GLOBALS['user_system']->getCurrentUser() ? Array('!status' => 'archived') : Array(); if (!isset($this->_tmp['members'])) { - $this->_tmp['members'] = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id), 'OR', 'ab.rank, gender DESC'); + $this->_tmp['members'] = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id)+$restriction, 'AND', 'ab.rank, gender DESC'); } return $this->_tmp['members']; }