From 40d51dc7ef42b880c8f9fbc804440865fecdf173 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sun, 4 Jan 2015 09:16:19 +0100 Subject: [PATCH] fix possible undefined variable Signed-off-by: Michael Kaufmann (d00p) --- admin_customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_customers.php b/admin_customers.php index 3c3a0c6e..edc0577c 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -1061,7 +1061,7 @@ if ($page == 'customers' $password = validate($_POST['new_customer_password'], 'new password'); $gender = intval_ressource($_POST['gender']); - $move_to_admin = intval_ressource($_POST['move_to_admin']); + $move_to_admin = isset($_POST['move_to_admin']) ? intval_ressource($_POST['move_to_admin']) : 0; $diskspace = intval_ressource($_POST['diskspace']); if (isset($_POST['diskspace_ul'])) {