From 8ebc4cd91f744a5c836df7c4e06599a7918132cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20TALON?= Date: Sun, 24 Feb 2013 18:11:09 +0100 Subject: [PATCH] Fix undefined dpath (options.php) --- src/options.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/options.php b/src/options.php index 34c5b1e..dfe2ea2 100644 --- a/src/options.php +++ b/src/options.php @@ -49,15 +49,15 @@ $mode = isset($_GET['mode']) ? $_GET['mode'] : null; 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] - $iduser = $user["id"]; - $avatar = $_POST["avatar"]; + $iduser = $user["id"]; + $avatar = $_POST["avatar"]; - if ($_POST["dpath"] != "") - $dpath = $_POST["dpath"]; - else - $dpath = (!$user["dpath"]) ? DEFAULT_SKINPATH : $user["dpath"]; + if ($_POST["dpath"] != "") + $dpath = $_POST["dpath"]; // Gestion des options speciales pour les admins if ($user['authlevel'] != LEVEL_PLAYER) {