From 171870aae86a99e2cd1562c2a61d8e78cf858463 Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:06:39 +0100 Subject: [PATCH] Fix TypeError --- web/view_entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/view_entry.php b/web/view_entry.php index a48fc27aef..6bc693c0bf 100644 --- a/web/view_entry.php +++ b/web/view_entry.php @@ -279,7 +279,7 @@ function generate_event_registration(array $row, ?string $previous_page=null) : { echo ''; echo '' . htmlspecialchars(get_vocab('registrant_limit')) . ''; - echo '' . htmlspecialchars($row['registrant_limit']) . ''; + echo '' . intval($row['registrant_limit']) . ''; // Redundant escaping, just in case echo "\n"; }