From: Anne Limoges Date: Mon, 24 Jun 2013 05:53:30 +0000 (+0200) Subject: Force a name on default sub-event X-Git-Tag: xorg/1.1.9~26 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d9687e80b6cb6711a2218c70a640e41dff9b8389;p=platal.git Force a name on default sub-event --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 1e54dfc..a7eadd0 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -581,10 +581,10 @@ class XnetEventsModule extends PLModule } } - // events with no sub-event: add a sub-event with no name + // events with no sub-event: add a sub-event with default name if ($nb_moments == 0) { XDB::execute("INSERT INTO group_event_items - VALUES ({?}, {?}, '', '', 0)", $eid, 1); + VALUES ({?}, {?}, 'Événement', '', 0)", $eid, 1); } if (!$error) {