mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Issue #3303 Set mail_enabled to 'user' if no option is checked when saving prefs.
This commit is contained in:
parent
9b2772b7ac
commit
9e50ae7d06
@ -1516,10 +1516,18 @@ class mailout_main_ui extends e_admin_ui
|
|||||||
$temp['mail_bounce_pass'] = $tp->toDB($_POST['mail_bounce_pass']);
|
$temp['mail_bounce_pass'] = $tp->toDB($_POST['mail_bounce_pass']);
|
||||||
$temp['mail_bounce_type'] = $tp->toDB($_POST['mail_bounce_type']);
|
$temp['mail_bounce_type'] = $tp->toDB($_POST['mail_bounce_type']);
|
||||||
$temp['mail_bounce_delete'] = intval(varset($_POST['mail_bounce_delete'], 0));
|
$temp['mail_bounce_delete'] = intval(varset($_POST['mail_bounce_delete'], 0));
|
||||||
|
|
||||||
|
if(empty($_POST['mail_mailer_enabled']))
|
||||||
|
{
|
||||||
|
$_POST['mail_mailer_enabled'] = array('user'); // set default when empty.
|
||||||
|
}
|
||||||
|
|
||||||
$temp['mailout_enabled'] = implode(',', varset($_POST['mail_mailer_enabled'], ''));
|
$temp['mailout_enabled'] = implode(',', varset($_POST['mail_mailer_enabled'], ''));
|
||||||
$temp['mail_log_options'] = intval($_POST['mail_log_option']).','.intval($_POST['mail_log_email']);
|
$temp['mail_log_options'] = intval($_POST['mail_log_option']).','.intval($_POST['mail_log_email']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(empty($temp['mailout_enabled']))
|
if(empty($temp['mailout_enabled']))
|
||||||
{
|
{
|
||||||
$temp['mailout_enabled'] = 'user';
|
$temp['mailout_enabled'] = 'user';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user