Skip to content

Commit

Permalink
Fix potential PHP deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Sep 13, 2023
1 parent 56b28ca commit 27eb9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function generate_new_room_form()
// the standard MRBS fields
case 'description':
case 'room_admin_email':
echo "<td><div>" . htmlspecialchars($r[$field['name']]) . "</div></td>\n";
echo "<td><div>" . htmlspecialchars($r[$field['name']] ?? '') . "</div></td>\n";
break;
case 'capacity':
echo "<td class=\"int\"><div>" . $r[$field['name']] . "</div></td>\n";
Expand Down

0 comments on commit 27eb9b8

Please sign in to comment.