Skip to content
Snippets Groups Projects
Commit a002ceb4 authored by Armand Bahi's avatar Armand Bahi
Browse files

Valeur par défaut pour timezone_id

parent 943bb3de
No related branches found
No related tags found
No related merge requests found
......@@ -249,8 +249,10 @@ class Users extends Vitis {
}
// verify if the user is vitis_admin
else if (in_array("vitis_admin", $this->oConnection->aPrivileges)) {
// Changement de mot de passe ?
require_once $this->sRessourcesFile;
if (empty($this->aValues["timezone_id"])) {
$this->aValues["timezone_id"] = "Europe/Paris";
}
$this->aValues["login"] = mb_strtolower($this->aValues["login"], 'UTF-8');
$this->aValues["login"] = str_replace(array('à', 'â', 'ä', 'á', 'ã', 'å', 'î', 'ï', 'ì', 'í', 'ô', 'ö', 'ò', 'ó', 'õ', 'ø', 'ù', 'û', 'ü', 'ú', 'é', 'è', 'ê', 'ë', 'ç', 'ÿ', 'ñ'), array('a', 'a', 'a', 'a', 'a', 'a', 'i', 'i', 'i', 'i', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'e', 'e', 'e', 'e', 'c', 'y', 'n',), $this->aValues["login"]);
$aParams['sSchemaFramework'] = array('value' => $this->aProperties['schema_framework'], 'type' => 'schema_name');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment