The stable release of the Legal module has so many errors. But this one is also found in the dev release.
This error this time is
Notice: Undefined variable: accepted in legal_form_user_profile_form_alter()…
Use the following patch.
diff --git a/legal.module b/legal.module
index 4707331..4f331cd 100644
--- a/legal.module
+++ b/legal.module
@@ -270,6 +270,7 @@ function legal_form_user_profile_form_alter(&$form, $form_state) {
$legal_account = legal_get_accept($account->uid);
// If no version has been accepted yet, get version with current language revision.
+ $accepted = FALSE;
if (empty($legal_account['version'])) {
$conditions = legal_get_conditions($language->language);
// No conditions set yet.
Done =)
Reference: Notice: Undefined variable: accepted in legal_form_user_profile_form_alter()

please open an issue against legal – module
LikeLike
Thanks for your comment. There is already an opened issue. seems the patch has been committed to the dev branch.
Notice: Undefined variable: accepted in legal_form_user_profile_form_alter()
LikeLike