diff --git a/pages/editperson.php b/pages/editperson.php index d165259..511e8bd 100644 --- a/pages/editperson.php +++ b/pages/editperson.php @@ -24,7 +24,8 @@ $data = [ "shirt" => "", "sex" => "", "parentname" => "", - "rank" => "" + "rank" => "", + "days" => "" ]; $type = "camper"; if (!empty($VARS['type']) && preg_match("/(camper|adult|youth)/", $VARS['type'])) { @@ -237,6 +238,7 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']]) "Th" => "Thursday", "Fr" => "Friday", ], + "selected" => str_split($data['days'], 2), "error" => "Choose at least one day." ], [ @@ -343,7 +345,17 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']]) foreach ($item['options'] as $value => $label) { ?>
- + + >