// query for access to board nomination process
//
- $meets_a_criterion = function ($all_contribs, $amount) {
+ // $all_contribs: whether to include all contrib types in total
+ // ... false means only membership donations are counted.
+ // $amount: donation total threshold for qualifying
+ $meets_a_donation_criterion = function ($all_contribs, $amount) {
$ranged_membership_donation_total =
$this->query_db('query_nomination_process_donations',
return false;
};
- if ($meets_a_criterion(true, 5) || $meets_a_criterion(false, 5)) {
+ if ($meets_a_donation_criterion(true, 5) || $meets_a_donation_criterion(false, 5)) {
$attributes['nomination_process'] = ['true'];
} else {
$attributes['nomination_process'] = ['false'];