From 058c9d3806bfdfec22bd14ac8478c1fc40d370fc Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 23 May 2019 18:54:04 +0200 Subject: [PATCH] Newsletter reminder settings ent --- pandora_console/operation/users/user_edit.php | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index f47a1efc8e..be83728ca7 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -396,22 +396,23 @@ if (check_acl($config['id_user'], 0, 'ER')) { null, true ).''; -} else if (license_free()) { - $newsletter = '

'.__('Newsletter Subscribed').':

'; - if ($user_info['middlename']) { - $newsletter .= ''.__('Already subscribed to %s newsletter', get_product_name()).'
'; - } else { - $newsletter .= ''.__('Subscribe to our newsletter').''; - } - - $newsletter_reminder = '

'.__('Newsletter Reminder').':

'; - if ($user_info['firstname'] != 0) { - $user_info['firstname'] = 1; - } - - $newsletter_reminder .= html_print_checkbox_switch('newsletter_reminder', 1, $user_info['firstname'], true).'
'; } +$newsletter = '

'.__('Newsletter Subscribed').':

'; +if ($user_info['middlename']) { + $newsletter .= ''.__('Already subscribed to %s newsletter', get_product_name()).'
'; +} else { + $newsletter .= ''.__('Subscribe to our newsletter').''; +} + +$newsletter_reminder = '

'.__('Newsletter Reminder').':

'; +if ($user_info['firstname'] != 0) { + $user_info['firstname'] = 1; +} + +$newsletter_reminder .= html_print_checkbox_switch('newsletter_reminder', 1, $user_info['firstname'], true).'
'; + + $autorefresh_list_out = []; if (is_metaconsole()) {