*/
private function add_more_attributes(&$attributes, $username) {
- //
- // query on membership
- //
+ //
+ // query on membership
+ //
$membership_data = $this->query_db('query_membership', $username);
': No rows in result set. Probably no membership.');
}
- $attributes['is_member'] = ['false'];
+ $attributes['is_member'] = ['false'];
$attributes['was_member'] = ['false'];
foreach ($membership_data as $row) {
}
$value = (string) $value;
- if ($value === '1' || $value === '2' || $value === '3') {
+ if ($value === '1' || $value === '2' || $value === '3') {
$attributes['is_member'] = ['true'];
$attributes['was_member'] = ['true'];
- } elseif ($value === '4') {
+ } elseif ($value === '4') {
$attributes['was_member'] = ['true'];
- }
+ }
}
}
- //
- // query on staff
- //
+ //
+ // query on staff
+ //
$staff_data = $this->query_db('query_staff', $username);
': No rows in result set. Probably not FSF staff.');
}
- $attributes['is_fsf_staff'] = ['false'];
+ $attributes['is_fsf_staff'] = ['false'];
foreach ($staff_data as $row) {
foreach ($row as $key => $value) {
*/
$attributes = [];
- // use the entered user name so we don't forcibly change it to all
- // lower case. this is to preserve the behavior of the old cas server,
- // and to remain compatible with our MW and Discourse sites that are
- // case sensitive.
- $attributes['name'][] = $username;
+ // use the entered user name so we don't forcibly change it to all
+ // lower case. this is to preserve the behavior of the old cas server,
+ // and to remain compatible with our MW and Discourse sites that are
+ // case sensitive.
+ $attributes['name'][] = $username;
foreach ($user_data as $row) {
foreach ($row as $key => $value) {