diff --git a/ext/user/main.php b/ext/user/main.php index 26355815..64c23694 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -704,7 +704,7 @@ class UserPage extends Extension ); } - send_event(new UserDeletionEvent($_POST['id'])); + send_event(new UserDeletionEvent((int)$_POST['id'])); $database->execute( "DELETE FROM users WHERE id = :id", diff --git a/ext/user/theme.php b/ext/user/theme.php index 76045da0..7d55bd28 100644 --- a/ext/user/theme.php +++ b/ext/user/theme.php @@ -264,8 +264,8 @@ class UserPageTheme extends Themelet "user_admin/delete_user", "Delete User", TBODY( - TR(TD(INPUT(["type"=>'checkbox', "name"=>'with_images'], "Delete images"))), - TR(TD(INPUT(["type"=>'checkbox', "name"=>'with_comments'], "Delete comments"))), + TR(TD(LABEL(INPUT(["type"=>'checkbox', "name"=>'with_images']), "Delete images"))), + TR(TD(LABEL(INPUT(["type"=>'checkbox', "name"=>'with_comments']), "Delete comments"))), ), TFOOT( TR(TD(INPUT(["type"=>'button', "class"=>'shm-unlocker', "data-unlock-sel"=>'.deluser', "value"=>'Unlock']))),