From: x2003bruneau Date: Mon, 31 Jul 2006 12:41:12 +0000 (+0000) Subject: Fix event edition X-Git-Tag: xorg/0.9.11~169 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=01248e3ac03a3f9b604e98c97157884bf4733a66;p=platal.git Fix event edition git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@746 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/events.php b/modules/events.php index 38ef519..8b1ccde 100644 --- a/modules/events.php +++ b/modules/events.php @@ -262,12 +262,12 @@ class EventsModule extends PLModule $arch = $action == 'archives'; $page->assign('action', $action); - if (Post::v('action') == "Proposer") { + if (Post::v('action') == "Proposer" && $eid) { XDB::execute('UPDATE evenements SET titre={?}, texte={?}, peremption={?}, promo_min={?}, promo_max={?} WHERE id = {?}', Post::v('titre'), Post::v('texte'), Post::v('peremption'), - Post::v('promo_min'), Post::v('promo_max'), Post::i('evt_id')); + Post::v('promo_min'), Post::v('promo_max'), $eid); } if ($action == 'edit') {