correct check for existing user in ftp-members list when adding a new customer

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-19 07:47:37 +02:00
parent e95710d599
commit 16751d7446

View File

@@ -869,7 +869,7 @@ if ($page == 'customers'
}
// check froxlor-local user membership in ftp-group
// without this check addition may duplicate user in list if httpuser == local_user
if (strpos($ins_data['members'], $local_user) !== false) {
if (strpos($ins_data['members'], $local_user) == false) {
$ins_data['members'] .= ','.$local_user;
}
}