1
0
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:
Tijn Kuyper
2012-12-09 18:12:18 +01:00
parent 80a3098406
commit d5ed7f6c48
3 changed files with 8 additions and 8 deletions

View File

@@ -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)