From 4d4ee0d73d08718ee1577d4623f103621eca6765 Mon Sep 17 00:00:00 2001 From: Astu04 Date: Tue, 25 Jul 2023 11:31:51 +0200 Subject: [PATCH] Add a place holder for when there is no group --- modal/areas_modal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modal/areas_modal.php b/modal/areas_modal.php index 4ac194f1..4a31abea 100644 --- a/modal/areas_modal.php +++ b/modal/areas_modal.php @@ -56,13 +56,15 @@ echo "
"; foreach ($areas as $group => $areaList) { + // Check if $group is empty or null, and set the default text accordingly + $buttonText = !empty($group) ? $group : "No group"; $updatedGroup = str_replace(' ', '_', $group); echo "