diff --git a/phpBB/includes/acp/acp_ban.php b/phpBB/includes/acp/acp_ban.php index 9d853aaede..61f3096b74 100644 --- a/phpBB/includes/acp/acp_ban.php +++ b/phpBB/includes/acp/acp_ban.php @@ -186,7 +186,7 @@ class acp_ban 'L_BAN_CELL' => $l_ban_cell, 'L_NO_BAN_CELL' => $l_no_ban_cell, - 'S_USERNAME_BAN' => $mode == 'user', + 'S_USERNAME_BAN' => $mode == 'user' ? true : false, 'U_ACTION' => $this->u_action, 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&form=acp_ban&field=ban'), diff --git a/phpBB/phpbb/ban/manager.php b/phpBB/phpbb/ban/manager.php index 7586cb6dde..e48e734617 100644 --- a/phpBB/phpbb/ban/manager.php +++ b/phpBB/phpbb/ban/manager.php @@ -117,7 +117,7 @@ class manager // Prevent duplicate bans $sql = 'DELETE FROM ' . $this->bans_table . " WHERE ban_mode = '" . $this->db->sql_escape($mode) . "' - AND " . $this->db->sql_in_set('ban_item', $ban_items, false, true); + AND " . $this->db->sql_in_set('ban_item', $ban_items, false, true); $this->db->sql_query($sql); $insert_array = []; @@ -468,7 +468,8 @@ class manager { // Delete stale bans $sql = 'DELETE FROM ' . $this->bans_table . ' - WHERE ban_end > 0 AND ban_end < ' . (int) time(); + WHERE ban_end > 0 + AND ban_end < ' . (int) time(); $this->db->sql_query($sql); /** @var type_interface $type */