1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Issue #3303 Set mail_enabled to 'user' if no option is checked when saving prefs.

This commit is contained in:
Cameron 2018-07-25 16:17:16 -07:00
parent 9b2772b7ac
commit 9e50ae7d06

View File

@ -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_type'] = $tp->toDB($_POST['mail_bounce_type']);
$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['mail_log_options'] = intval($_POST['mail_log_option']).','.intval($_POST['mail_log_email']);
if(empty($temp['mailout_enabled']))
{
$temp['mailout_enabled'] = 'user';