diff --git a/modal/areas_modal.php b/modal/areas_modal.php index 4ac194f..4a31abe 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 "