Skip to content

Commit

Permalink
Age bracket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbar0970 committed Mar 1, 2017
1 parent 55d5e70 commit a8f17ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_objects/family.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function toString()

function getAdultMemberNames()
{
$adults = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id, '(age_bracket' => Age_Bracket::getAdults(), '!status' => 'archived'), 'AND', 'age_bracket, gender DESC');
$adults = $GLOBALS['system']->getDBObjectData('person', Array('familyid' => $this->id, '(age_bracketid' => Age_Bracket::getAdults(), '!status' => 'archived'), 'AND', 'ab.rank, gender DESC');
if (count($adults) == 1) {
$adult = reset($adults);
return $adult['first_name'].' '.$adult['last_name'];
Expand Down

0 comments on commit a8f17ad

Please sign in to comment.