From 9b56b0c29d3b9836cf11de947706bf7e2f4a3f5d Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sun, 10 Mar 2013 14:46:45 +0100 Subject: [PATCH] fix undefined indexes when path already exists and an error is thrown Signed-off-by: Michael Kaufmann (d00p) --- customer_extras.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/customer_extras.php b/customer_extras.php index f4368090..c42feee1 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -362,9 +362,18 @@ elseif($page == 'htaccess') $options_cgi = '0'; } - $error404path = correctErrorDocument($_POST['error404path']); - $error403path = correctErrorDocument($_POST['error403path']); - $error500path = correctErrorDocument($_POST['error500path']); + $error404path = ''; + if (isset($_POST['error404path'])) { + $error404path = correctErrorDocument($_POST['error404path']); + } + $error403path = ''; + if (isset($_POST['error403path'])) { + $error403path = correctErrorDocument($_POST['error403path']); + } + $error500path = ''; + if (isset($_POST['error500path'])) { + $error500path = correctErrorDocument($_POST['error500path']); + } if($path_dupe_check['path'] == $path) {