X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=8b1ccdead6ef1d5105aadf82c76c43d94d31b833;hb=01248e3ac03a3f9b604e98c97157884bf4733a66;hp=38ef5199394ab36b23a1304652bb6f848ee72643;hpb=f1ca33de3bce194c10cfa9b7fbc588fbf6b3014d;p=platal.git 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') {