From 393851d4c6386ffae961eb39d2632add0fd561ee Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Fri, 9 Nov 2018 17:50:25 -0500 Subject: [PATCH] Removed unecessary argument in ftpadmin.php delete It caused errors because it wasnt set in some cases, but was never even checked by the invoked shell script. --- inc/ftpadmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/ftpadmin.php b/inc/ftpadmin.php index f528318..283398c 100644 --- a/inc/ftpadmin.php +++ b/inc/ftpadmin.php @@ -155,7 +155,7 @@ if ($action=="add") { } elseif ($action=="delete") { - sudoexec("ftpadmin.sh -a d -u $user_id -n $account -f /dev/null -p azertyuiop", $standard_output, $function_output); + sudoexec("ftpadmin.sh -a d -n $account -f /dev/null -p azertyuiop", $standard_output, $function_output); $_SESSION['error'] = null;