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()) {
elseif ($thisclient) {
// Guest registering for an account
if ($thisclient->isGuest()) {
foreach ($thisclient->getForms() as $f)
if ($f->get('type') == 'U')
foreach ($thisclient->getForms() as $f) {
if ($f->get('type') == 'U') {
$user_form = $f;
$user_form->getField('email')->configure('disabled', true);
$user_form->getField('email')->configure('disabled', true);
}
}
}
// Existing client (with an account) updating profile
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment