Force a name on default sub-event
authorAnne Limoges <anne.limoges_git@polytechnique.org>
Mon, 24 Jun 2013 05:53:30 +0000 (07:53 +0200)
committerAnne Limoges <anne.limoges_git@polytechnique.org>
Mon, 24 Jun 2013 05:53:30 +0000 (07:53 +0200)
modules/xnetevents.php

index 1e54dfc..a7eadd0 100644 (file)
@@ -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) {