1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Issue #2783 - captcha error message corrected.

This commit is contained in:
Cameron
2017-09-14 11:42:59 -07:00
parent 6578870398
commit f921a4bf5b

View File

@@ -596,7 +596,7 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1)
{ {
e107::getCache()->clear("online_menu_totals"); e107::getCache()->clear("online_menu_totals");
if (isset($_POST['rand_num']) && $signup_imagecode) if ($signup_imagecode)
{ {
if ($badCodeMsg = e107::getSecureImg()->invalidCode($_POST['rand_num'], $_POST['code_verify'])) // better: allows class to return the error. if ($badCodeMsg = e107::getSecureImg()->invalidCode($_POST['rand_num'], $_POST['code_verify'])) // better: allows class to return the error.
{ {
@@ -756,7 +756,7 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1)
{ {
if(deftrue('BOOTSTRAP')) if(deftrue('BOOTSTRAP'))
{ {
e107::getMessage()->addError(implode('<br />', $temp)); e107::getMessage()->addError(implode('<br />', $extraErrors));
} }
else else
{ {