diff --git a/signup.php b/signup.php
index 5ff31ea1c..be05ef354 100644
--- a/signup.php
+++ b/signup.php
@@ -596,7 +596,7 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1)
{
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.
{
@@ -756,7 +756,7 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1)
{
if(deftrue('BOOTSTRAP'))
{
- e107::getMessage()->addError(implode('
', $temp));
+ e107::getMessage()->addError(implode('
', $extraErrors));
}
else
{