fix deletion of admins; fixes #638

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-01-16 10:59:32 +01:00
parent 98daef7224
commit 97ff3485b7

View File

@@ -166,7 +166,7 @@ if ($page == 'admins' && $userinfo['change_serversettings'] == '1') {
}
if (isset($_POST['send']) && $_POST['send'] == 'send') {
Admins::getLocal($this->getUserData(), array(
Admins::getLocal($userinfo, array(
'id' => $id
))->delete();
\Froxlor\UI\Response::redirectTo($filename, array(