Fix# Can't use method return value in write context
This would probably occur for PHP<5.5 ref: https://stackoverflow.com/a/4328049/446391
This commit is contained in:
parent
6161c13de2
commit
957f674781
|
|
@ -85,7 +85,7 @@ class RegisterController extends Controller {
|
|||
), 'error');
|
||||
}
|
||||
|
||||
if ( !empty($this->config->getUsersForUserValue('settings', 'email', $email)) ) {
|
||||
if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) {
|
||||
return new TemplateResponse('', 'error', array(
|
||||
'errors' => array(array(
|
||||
'error' => $this->l10n->t('There is an existing user with this email'),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ if ($_['entered']): ?>
|
|||
<?php else: ?>
|
||||
<form action="<?php print_unescaped(OC_Helper::linkToRoute('registration.register.validateEmail')) ?>" method="post">
|
||||
<fieldset>
|
||||
<?php if (!empty($_['errormsg'])): ?>
|
||||
<?php if ($_['errormsg']): ?>
|
||||
<ul class="error">
|
||||
<li><?php print_unescaped($_['errormsg']); ?></li>
|
||||
<li><?php print_unescaped($l->t('Please re-enter a valid email address')); ?></li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue