Dr Byte,
I tested this out.
In my case, this works only when you also add the '0' setting. So it was a new bug after all ;)
This is the code that works for me:
Code:
if (ACCOUNT_NEWSLETTER_STATUS == '0' || ACCOUNT_NEWSLETTER_STATUS == '1' || ACCOUNT_NEWSLETTER_STATUS == '2') {
$newsletter = 0;
if (isset($_POST['newsletter'])) {
$newsletter = zen_db_prepare_input($_POST['newsletter']);
}
This is the code you suggested:
Code:
if (ACCOUNT_NEWSLETTER_STATUS == '1' || ACCOUNT_NEWSLETTER_STATUS == '2') {
$newsletter = 0;
if (isset($_POST['newsletter'])) {
$newsletter = zen_db_prepare_input($_POST['newsletter']);
}
}
It was pure luck I think, but I guess I am starting to learn something here...