<?php
/*
 * Gasell: Copyright 2005 Linux-Nantes Association <contact@linux-nantes.fr.eu.org>
 *
 * You should have received a copy of the GNU Public
 * License along with this package; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Authors: Raude-Morvan Damien (DrazziB) <drazzib@drazzib.com>
 *
 * Histoire
 *  * 09/07/2005 DrazziB : Création de l'action
 *  * 15/12/2005 DrazziB : Gestion des erreurs
 */

/**
 * Suppression d'une participation
 *
 * @param string $args['code'] : code de la participation a supprimer
 * @return true si la suppression se passe bien
 */

require_once GASELL_BASE . '/lib/Participation.php';

/* On verifie que le code est transmis dans l'URL. */
if ($args['code'] == NULL)
 {
	$this->errorMessage("Vous devez pr&eacute;cisez le code de la participation !");
	$result = false;
 }
else
 {
	/* Suppression d'une participation */
	$result = Participation::Delete($args['code']);
 }
?>