1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

#1887 User Settings Notice Removal

#1887 User Settings Notice Removal
This commit is contained in:
MikeyGMT 2016-10-17 01:32:31 +01:00
parent c4b45908ef
commit 4881a848c0
3 changed files with 5 additions and 5 deletions

View File

@ -198,7 +198,7 @@ class usersettings_shortcodes extends e_shortcode
$inclass = implode(',',$is_checked);
// $ret = "<table style='width:95%;margin-left:0px'><tr><td class='defaulttext'>";
$ret .= $e_userclass->vetted_tree('class',array($e_userclass,checkbox_desc),$inclass,'editable, no-excludes');
$ret .= $e_userclass->vetted_tree('class',array($e_userclass,'checkbox_desc'),$inclass,'editable, no-excludes');
// $ret .= "</td></tr></table>\n";
return $ret;
@ -473,7 +473,7 @@ class usersettings_shortcodes extends e_shortcode
$parms = explode("^,^",$fInfo['user_extended_struct_parms']);
$fhide="";
if($parms[3])
if(varset($parms[3]))
{
$chk = (strpos($this->var['user_hidden_fields'], "^user_".$parm."^") === FALSE) ? FALSE : TRUE;
if(isset($_POST['updatesettings']))

View File

@ -726,8 +726,8 @@ class e107_user_extended
$parms = explode("^,^",$struct['user_extended_struct_parms']);
$include = preg_replace("/\n/", " ", $tp->toHtml($parms[0]));
$regex = $tp->toText($parms[1]);
$regexfail = $tp->toText($parms[2]);
$regex = $tp->toText(varset($parms[1]));
$regexfail = $tp->toText(varset($parms[2]));
$fname = "ue[user_".$struct['user_extended_struct_name']."]";
$required = vartrue($struct['user_extended_struct_required']) == 1 ? "required" : "";
$fid = $frm->name2id($fname);

View File

@ -178,7 +178,7 @@ if (isset($_POST['updatesettings']))
}
// Uploaded avatar and/or photo
if ($file_userfile['error'] != 4)
if (varset($file_userfile['error']) != 4)
{
require_once (e_HANDLER.'upload_handler.php');
require_once (e_HANDLER.'resize_handler.php');