Fixed You must enter an email message

Hugo Santos

Active member
#1
Hi,
thanks for all!

Just to give my feedback.

I've installed 1.5 in production, (yes i've backup first) :D
Instalation with no problems, just merge style.

Error on:
After turn on "Send welcome email on registration" get
You must enter an email message to enable the welcome email.
but i've enter an email message.

Add-on instaled and running:

Add-on Install & Upgrade
Avatar Gallery
Enable Debug From Admin Home
Go To Top !
Nodes As Tabs
TaigaChat Pro
Tapatalk
Toggle ME
XenForo Resource Manager
[8wayRun.Com] XenPorta (Portal)
[8wayRun.Com] XenUtiles (Tools)
[bd] Medal
[bd] Rotating Ads
[bd] Widget Framework
[Iversia] FAQ Manager

Great work Xenforo team (y)
 

Chris D

XenForo developer
Staff member
#2
That appears to be a bug.

If you'd like to fix this yourself, you need to edit library/XenForo/Option/RegistrationWelcome.php

Find:
PHP:
if (!empty($values['emailEnabled']) && strlen($values['emailBody'] == 0))
Replace with:
PHP:
if (!empty($values['emailEnabled']) && !strlen(trim($values['emailBody'])))
Stupid typo...
 

Hugo Santos

Active member
#3
That appears to be a bug.

If you'd like to fix this yourself, you need to edit library/XenForo/Option/RegistrationWelcome.php

Find:
PHP:
if (!empty($values['emailEnabled']) && strlen($values['emailBody'] == 0))
Replace with:
PHP:
if (!empty($values['emailEnabled']) && !strlen(trim($values['emailBody'])))
Stupid typo...
Fixed, thanks (y)
 
Top