diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-24 11:29:56 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-24 11:29:56 +0000 |
commit | 9e5c25504e275d8de071f2efafa349ebee21063c (patch) | |
tree | 86d37c1ed2b20eca9575084be7668d7b32dcf644 /phpBB/includes/acp/acp_ban.php | |
parent | 180a5a243d03803fef0d32a6aaa2d6899a83dfcc (diff) | |
download | forums-9e5c25504e275d8de071f2efafa349ebee21063c.tar forums-9e5c25504e275d8de071f2efafa349ebee21063c.tar.gz forums-9e5c25504e275d8de071f2efafa349ebee21063c.tar.bz2 forums-9e5c25504e275d8de071f2efafa349ebee21063c.tar.xz forums-9e5c25504e275d8de071f2efafa349ebee21063c.zip |
- added confirm box to ucp zebra (adding fried/foe)
- permission fixes for conversions
- use more appropiate error message within convertor if source tables could not be found
- other tiny fixes
git-svn-id: file:///svn/phpbb/trunk@6925 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_ban.php')
-rw-r--r-- | phpBB/includes/acp/acp_ban.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_ban.php b/phpBB/includes/acp/acp_ban.php index d28319c731..bd05cf7b1c 100644 --- a/phpBB/includes/acp/acp_ban.php +++ b/phpBB/includes/acp/acp_ban.php @@ -40,17 +40,23 @@ class acp_ban $ban_reason = request_var('banreason', '', true); $ban_give_reason = request_var('bangivereason', '', true); - user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason); + if ($ban) + { + user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason); - trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action)); + trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action)); + } } else if ($unbansubmit) { $ban = request_var('unban', array('')); - user_unban($mode, $ban); + if ($ban) + { + user_unban($mode, $ban); - trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action)); + trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action)); + } } // Define language vars |