Fix undefined dpath (options.php)
This commit is contained in:
parent
4b92511bae
commit
8ebc4cd91f
1 changed files with 6 additions and 6 deletions
|
|
@ -49,15 +49,15 @@ $mode = isset($_GET['mode']) ? $_GET['mode'] : null;
|
||||||
message($lang['You_cant_exit_vmode'], $lan['Error'] ,"options.php",1);
|
message($lang['You_cant_exit_vmode'], $lan['Error'] ,"options.php",1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dpath = (!$user["dpath"]) ? DEFAULT_SKINPATH : $user["dpath"];
|
||||||
|
|
||||||
if ($_POST && $mode == "change") { // Array ( [db_character]
|
if ($_POST && $mode == "change") { // Array ( [db_character]
|
||||||
$iduser = $user["id"];
|
$iduser = $user["id"];
|
||||||
$avatar = $_POST["avatar"];
|
$avatar = $_POST["avatar"];
|
||||||
|
|
||||||
if ($_POST["dpath"] != "")
|
if ($_POST["dpath"] != "")
|
||||||
$dpath = $_POST["dpath"];
|
$dpath = $_POST["dpath"];
|
||||||
else
|
|
||||||
$dpath = (!$user["dpath"]) ? DEFAULT_SKINPATH : $user["dpath"];
|
|
||||||
|
|
||||||
// Gestion des options speciales pour les admins
|
// Gestion des options speciales pour les admins
|
||||||
if ($user['authlevel'] != LEVEL_PLAYER) {
|
if ($user['authlevel'] != LEVEL_PLAYER) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue