Skip to content
Snippets Groups Projects
Commit 76349e15 authored by bailey86's avatar bailey86
Browse files

Merge pull request #1 from bailey86/bailey86-patch-1

Fix blank page from 'register' link in email
parents 19292ad2 edf25b03
No related branches found
No related tags found
No related merge requests found
...@@ -29,10 +29,12 @@ if (!$cfg || !$cfg->isClientRegistrationEnabled()) { ...@@ -29,10 +29,12 @@ if (!$cfg || !$cfg->isClientRegistrationEnabled()) {
elseif ($thisclient) { elseif ($thisclient) {
// Guest registering for an account // Guest registering for an account
if ($thisclient->isGuest()) { if ($thisclient->isGuest()) {
foreach ($thisclient->getForms() as $f) foreach ($thisclient->getForms() as $f) {
if ($f->get('type') == 'U') if ($f->get('type') == 'U') {
$user_form = $f; $user_form = $f;
$user_form->getField('email')->configure('disabled', true); $user_form->getField('email')->configure('disabled', true);
}
}
} }
// Existing client (with an account) updating profile // Existing client (with an account) updating profile
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment