diff --git a/htdocs/admin/webcalendar.php b/htdocs/admin/webcalendar.php
index e42cad79c9f..db12326b537 100644
--- a/htdocs/admin/webcalendar.php
+++ b/htdocs/admin/webcalendar.php
@@ -45,13 +45,8 @@ $def = array();
$actiontest=$_POST["test"];
$actionsave=$_POST["save"];
-// Test saisie mot de passe
-if ($_POST["phpwebcalendar_pass"] != $_POST["phpwebcalendar_pass2"])
-{
- $mesg="
".$langs->trans("ErrorPasswordDiffers")."
";
-}
-// Positionne la variable pour le test d'affichage de l'icone
-elseif ($actionsave)
+// Sauvegardes parametres
+if ($actionsave)
{
$i=0;
@@ -104,11 +99,13 @@ elseif ($actiontest)
$sql="SELECT cal_value FROM webcal_config WHERE cal_setting='application_name'";
$resql=$webcal->localdb->query($sql);
if ($resql) {
- $mesg ="