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:
Pellaeon Lin 2015-07-13 17:24:18 +08:00
parent 6161c13de2
commit 957f674781
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class RegisterController extends Controller {
), 'error'); ), 'error');
} }
if ( !empty($this->config->getUsersForUserValue('settings', 'email', $email)) ) { if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) {
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('There is an existing user with this email'), 'error' => $this->l10n->t('There is an existing user with this email'),

View File

@ -25,7 +25,7 @@ if ($_['entered']): ?>
<?php else: ?> <?php else: ?>
<form action="<?php print_unescaped(OC_Helper::linkToRoute('registration.register.validateEmail')) ?>" method="post"> <form action="<?php print_unescaped(OC_Helper::linkToRoute('registration.register.validateEmail')) ?>" method="post">
<fieldset> <fieldset>
<?php if (!empty($_['errormsg'])): ?> <?php if ($_['errormsg']): ?>
<ul class="error"> <ul class="error">
<li><?php print_unescaped($_['errormsg']); ?></li> <li><?php print_unescaped($_['errormsg']); ?></li>
<li><?php print_unescaped($l->t('Please re-enter a valid email address')); ?></li> <li><?php print_unescaped($l->t('Please re-enter a valid email address')); ?></li>