minor fix in newsletter logic

This commit is contained in:
fbsanchez 2019-05-23 18:59:38 +02:00
parent 058c9d3806
commit 211b05c9d6
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ if (check_acl($config['id_user'], 0, 'ER')) {
}
$newsletter = '<div class="label_select_simple"><p class="edit_user_labels">'.__('Newsletter Subscribed').': </p>';
if ($user_info['middlename']) {
if ($user_info['middlename'] > 0) {
$newsletter .= '<span>'.__('Already subscribed to %s newsletter', get_product_name()).'</span></div>';
} else {
$newsletter .= '<span><a href="javascript: force_run_newsletter();">'.__('Subscribe to our newsletter').'</a></span></div>';