function deleteTeams() { global $db; $teams = TCFunctions::request('teams'); if (empty($teams)) { redirectMsg('teams.php', __('No has seleccionado ningún equipo', 'admin_team'), 1); die; } foreach ($teams as $k) { $team = new TCTeam($k); $team->delete(); } redirectMsg('teams.php', __('Base de datos actualizada correctamente', 'admin_team'), 0); }