mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
Fix name input not present
This commit is contained in:
parent
bd45a8daf2
commit
528ce1da8e
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ if ($erreur_injection_commentaires) {
|
||||||
echo '</tr>'."\n";
|
echo '</tr>'."\n";
|
||||||
echo '<tr><td>'. _("Your name*: ") .'</td><td>';
|
echo '<tr><td>'. _("Your name*: ") .'</td><td>';
|
||||||
|
|
||||||
if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) {
|
if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) && !empty($_SESSION["nom"])) {
|
||||||
echo '<input type="hidden" name="nom" size="40" maxlength="40" value="'.$_SESSION["nom"].'">'.stripslashes($_SESSION["nom"]).'</td>'."\n";
|
echo '<input type="hidden" name="nom" size="40" maxlength="40" value="'.$_SESSION["nom"].'">'.stripslashes($_SESSION["nom"]).'</td>'."\n";
|
||||||
} else {
|
} else {
|
||||||
echo '<input type="text" name="nom" size="40" maxlength="40" value="'.stripslashes($_SESSION["nom"]).'"></td>'."\n";
|
echo '<input type="text" name="nom" size="40" maxlength="40" value="'.stripslashes($_SESSION["nom"]).'"></td>'."\n";
|
||||||
|
@ -207,7 +207,7 @@ if (!$_SESSION["nom"] && issetAndNoEmpty("poursuivre")) {
|
||||||
echo '</tr>'."\n";
|
echo '</tr>'."\n";
|
||||||
echo '<tr><td>'. _("Your e-mail address *: ") .'</td><td>';
|
echo '<tr><td>'. _("Your e-mail address *: ") .'</td><td>';
|
||||||
|
|
||||||
if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) {
|
if (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) && !empty($_SESSION["adresse"])) {
|
||||||
echo '<input type="hidden" name="adresse" size="40" maxlength="64" value="'.$_SESSION["adresse"].'">'.$_SESSION["adresse"].'</td>'."\n";
|
echo '<input type="hidden" name="adresse" size="40" maxlength="64" value="'.$_SESSION["adresse"].'">'.$_SESSION["adresse"].'</td>'."\n";
|
||||||
} else {
|
} else {
|
||||||
echo '<input type="text" name="adresse" size="40" maxlength="64" value="'.$_SESSION["adresse"].'"></td>'."\n";
|
echo '<input type="text" name="adresse" size="40" maxlength="64" value="'.$_SESSION["adresse"].'"></td>'."\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue