Skip to content

Commit e2b98b6

Browse files
Remove heading & add null coalesce
1 parent dd1e55a commit e2b98b6

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

attendees.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293

294294
// Show username.
295295
if ($showusername) {
296-
$user = isset($users[$attendee->id]) ? $users[$attendee->id] : null;
296+
$user = $users[$attendee->id] ?? null;
297297
$username = $user ? $user->username : '';
298298
$data[] = format_string($username);
299299
}

lang/en/facetoface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
$string['customfieldnewshortname'] = 'Custom field new shortname';
116116
$string['customfieldoriginalshortname'] = 'Custom field original shortname';
117117
$string['customfieldsheading'] = 'Custom Session Fields';
118-
$string['customtablefieldsheading'] = 'Custom Table Fields';
119118
$string['date'] = 'Date';
120119
$string['dateadd'] = 'Add a new date';
121120
$string['datebooked'] = 'Date booked';

settings.php

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
0
102102
));
103103

104+
$settings->add(new admin_setting_configcheckbox(
105+
'facetoface/attendeesshowusernames',
106+
get_string('setting:attendeesshowusernames_caption', 'mod_facetoface'),
107+
get_string('setting:attendeesshowusernames', 'mod_facetoface'),
108+
0
109+
));
110+
104111
$settings->add(new admin_setting_heading(
105112
'facetoface/manageremail_header',
106113
get_string('manageremailheading', 'facetoface'),
@@ -177,21 +184,6 @@
177184
]
178185
));
179186

180-
// Custom table fields.
181-
182-
$settings->add(new admin_setting_heading(
183-
'facetoface_customtablefields_header',
184-
get_string('customtablefieldsheading', 'facetoface'),
185-
''
186-
));
187-
188-
$settings->add(new admin_setting_configcheckbox(
189-
'facetoface/attendeesshowusernames',
190-
get_string('setting:attendeesshowusernames_caption', 'mod_facetoface'),
191-
get_string('setting:attendeesshowusernames', 'mod_facetoface'),
192-
0
193-
));
194-
195187
// List of user profile fields to optionally be included in attendees export.
196188

197189
$settings->add(new admin_setting_heading(

0 commit comments

Comments
 (0)