From c57b029877b3d8c45445439e2ade9f044da6c0fe Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 20 Apr 2021 13:32:58 -0700 Subject: [PATCH] Fixes #4493 - USER_WIDTH causing PHP8 error. --- e107_handlers/e_signup_class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/e107_handlers/e_signup_class.php b/e107_handlers/e_signup_class.php index 813f397c4..a28fb3f36 100644 --- a/e107_handlers/e_signup_class.php +++ b/e107_handlers/e_signup_class.php @@ -25,7 +25,7 @@ class e_signup function __construct() { - $this->pref = e107::pref('core'); + $this->pref = e107::pref(); $this->pref['user_reg_veri'] = intval($this->pref['user_reg_veri']); @@ -134,7 +134,7 @@ class e_signup $clean_email = "xxx"; }*/ - $new_email = $tp->toDB(varset($_POST['resend_newemail'], '')); + $new_email = $tp->toDB(varset($_POST['resend_newemail'])); if(!check_email($new_email )) { $new_email = FALSE; @@ -210,7 +210,7 @@ class e_signup return true; } - $result = e107::getEmail()->sendEmail($row['user_email'], $row['user_name'], $eml, false); + $result = e107::getEmail()->sendEmail($row['user_email'], $row['user_name'], $eml); if(!$result) { @@ -244,16 +244,16 @@ class e_signup $text = "
- +
-
".LAN_SIGNUP_48."".$frm->text('resend_email','',80)." + ".$frm->text('resend_email')." ".LAN_SIGNUP_121."
- +
@@ -385,7 +385,7 @@ class e_signup // Set initial classes, and any which the user can opt to join - if ($init_class = $userMethods->userClassUpdate($row, 'userfull')) + if ($init_class = $userMethods->userClassUpdate($row)) { //print_a($init_class); exit; $dbData['data']['user_class'] = $init_class; @@ -412,7 +412,7 @@ class e_signup { require_once(e_HANDLER.'login.php'); $usr = new userlogin(); - $usr->login($row['user_loginname'], md5($row['user_name'].$row['user_password'].$row['user_join']), 'signup', ''); + $usr->login($row['user_loginname'], md5($row['user_name'].$row['user_password'].$row['user_join']), 'signup'); }
".LAN_SIGNUP_49."