Merge branch 'xorg/maint'
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 1 Jun 2014 19:33:13 +0000 (21:33 +0200)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 1 Jun 2014 19:33:13 +0000 (21:33 +0200)
1  2 
modules/xnetevents/xnetevents.inc.php

@@@ -66,11 -66,11 +66,11 @@@ function get_event(&$eid
                                          $eid);
          $eid = $id;
      }
-     $evt = XDB::fetchOneAssoc('SELECT ge.uid, ge.intitule, ge.descriptif, ge.debut, ge.fin, ge.deadline_inscription, ge.accept_nonmembre, ge.paiement_id
+     $evt = XDB::fetchOneAssoc('SELECT ge.uid, ge.intitule, ge.descriptif, ge.debut, ge.fin, ge.deadline_inscription, ge.accept_nonmembre, ge.noinvite, ge.paiement_id
                                           FROM group_events as ge
                                          WHERE eid = {?}',
                                          $eid);
 -    if (!is_null($evt['deadline_inscription']) && strtotime($evt['deadline_inscription']) < time()) {
 +    if (!is_null($evt['deadline_inscription']) && strtotime($evt['deadline_inscription']) <= time()) {
          $evt['inscr_open'] = false;
      } else {
          $evt['inscr_open'] = true;
@@@ -311,7 -311,6 +311,6 @@@ function subscribe($uid, $eid, $subs = 
              // compares new and old subscription
              if ($old_subs[$item_id]['nb'] != $subs[$item_id]) {
                  if ($subs[$item_id] != 0) {
-                     echo "je m'inscris  ";
                      XDB::execute('INSERT INTO group_event_participants (eid, uid, item_id, nb, flags, paid)
                                         VALUES ({?}, {?}, {?}, {?}, {?}, {?})
                        ON DUPLICATE KEY UPDATE nb = VALUES(nb), flags = VALUES(flags), paid = VALUES(paid)',