diff --git a/langs/en/messages.json b/langs/en/messages.json index 581a5f5..b19805c 100644 --- a/langs/en/messages.json +++ b/langs/en/messages.json @@ -11,5 +11,6 @@ "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.": "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.", "Payment saved.": "Payment saved.", "Only showing expired or expiring memberships.": "Only showing expired or expiring memberships.", - "This family wishes to remain private. Do not share this information, even with other HACHE members.": "This family wishes to remain private. Do not share this information, even with other HACHE members." + "This family wishes to remain private. Do not share this information, even with other HACHE members.": "This family wishes to remain private. Do not share this information, even with other HACHE members.", + "That email address is already in use with another family.": "That email address is already in use with another family." } diff --git a/pages/editfamily.php b/pages/editfamily.php index 93db183..97387a2 100644 --- a/pages/editfamily.php +++ b/pages/editfamily.php @@ -15,6 +15,7 @@ if (!$user->hasPermission("HACHEPORTAL_EDIT")) { $editing = false; if (empty($VARS['id']) || !$database->has('families', ['familyid' => $VARS['id']])) { $family = new Family(); + $family->setExpires(strtotime("+1 year")); } else { $famid = $VARS['id']; $family = (new Family())->load($famid); @@ -22,7 +23,7 @@ if (empty($VARS['id']) || !$database->has('families', ['familyid' => $VARS['id'] } ?> -