diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 8a2b77c82a6..18c03319e80 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -262,16 +262,20 @@ if ($conf->global->DATABASE_PWD_ENCRYPTED == 0) } print ''; -if($conf->global->DATABASE_PWD_ENCRYPTED == 1 && $allow_disable_encryption) +if($conf->global->DATABASE_PWD_ENCRYPTED == 1) { - //On n'autorise pas l'annulation de l'encryption car les mots de passe ne peuvent pas être décodés - //Do not allow "disable encryption" as passwords cannot be decrypted - print ''.$langs->trans("Disable").''; -} -else -{ - print '-'; + if ($allow_disable_encryption) + { + //On n'autorise pas l'annulation de l'encryption car les mots de passe ne peuvent pas être décodés + //Do not allow "disable encryption" as passwords cannot be decrypted + print ''.$langs->trans("Disable").''; + } + else + { + print '-'; + } } + print ""; print ""; print '';