mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 15:46:44 +02:00
Few more notice removals
This commit is contained in:
@@ -642,7 +642,7 @@ if ($dataToSave && !$promptPassword)
|
||||
|
||||
if (!$error && !$promptPassword)
|
||||
{
|
||||
if(isset($_POST) && $changedUserData['user_name'])
|
||||
if(isset($_POST) && vartrue($changedUserData['user_name']))
|
||||
{
|
||||
$redirect = e107::getRedirect();
|
||||
$url = e107::getUrl();
|
||||
@@ -746,7 +746,7 @@ $curVal=$sql->db_Fetch(MYSQL_ASSOC);
|
||||
$curVal['user_class'] = varset($changedUserData['user_class'], $curVal['user_class']);
|
||||
$curVal['userclass_list'] = $userMethods->addCommonClasses($curVal, FALSE);
|
||||
|
||||
if ($_POST)
|
||||
if (vartrue($_POST))
|
||||
{ // Fix for all the values being lost when there was an error in a field - restore from the latest $_POST values
|
||||
// (Password fields have intentionally been cleared). If no error, there's an unset($_POST) to disable this block
|
||||
foreach ($_POST as $key => $val)
|
||||
|
Reference in New Issue
Block a user