From: Florent Bruneau Date: Sun, 22 Feb 2009 14:02:47 +0000 (+0100) Subject: Merge commit 'origin/master' into fusionax X-Git-Tag: xorg/1.0.0~332^2~344^2~10 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a93519575833e6886e055abb8b43b3ada6f163bc;hp=5a10ab142a636a7ffbd4bed1dc095657bff77890;p=platal.git Merge commit 'origin/master' into fusionax --- diff --git a/core b/core index a794b0b..e94c4a1 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit a794b0bd619df7b333018eb8435f755032ea4e8b +Subproject commit e94c4a1713cc0d63508a5d0ecd2d572f047975fb diff --git a/htdocs/images/medals/onorificenza_quadro.jpg b/htdocs/images/medals/onorificenza_quadro.jpg new file mode 100644 index 0000000..759f301 Binary files /dev/null and b/htdocs/images/medals/onorificenza_quadro.jpg differ diff --git a/include/validations/medals.inc.php b/include/validations/medals.inc.php index 0bc892c..e448358 100644 --- a/include/validations/medals.inc.php +++ b/include/validations/medals.inc.php @@ -36,6 +36,9 @@ class MedalReq extends Validate parent::__construct($_user, false, 'medal', $_stamp); $this->mid = $_idmedal; $this->gid = $_subidmedal; + if (is_null($this->gid)) { + $this->gid = 0; + } } // }}} @@ -104,7 +107,8 @@ class MedalReq extends Validate register_watch_op($this->user->id(), WATCH_FICHE, '', 'medals'); return XDB::execute('REPLACE INTO profile_medals_sub VALUES ({?}, {?}, {?})', - $this->user->id(), $this->mid, $this->gid); + $this->user->id(), $this->mid, + is_null($this->gid) ? 0 : $this->gid); } // }}} diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index 45db5b5..fd17320 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -31,7 +31,7 @@ function get_event_detail($eid, $item_id = false, $asso_id = null) "SELECT SUM(nb) AS nb_tot, COUNT(DISTINCT ep.uid) AS nb, e.*, IF(e.deadline_inscription, e.deadline_inscription >= LEFT(NOW(), 10), 1) AS inscr_open, - LEFT(10, e.debut) AS start_day, LEFT(10, e.fin) AS last_day, + LEFT(10, e.debut) AS first_day, LEFT(10, e.fin) AS last_day, LEFT(NOW(), 10) AS now, ei.titre, al.vid AS absent_list, pl.vid AS participant_list, diff --git a/templates/xnetgrp/annuaire-admin.tpl b/templates/xnetgrp/annuaire-admin.tpl index 41e6ece..5afe6b5 100644 --- a/templates/xnetgrp/annuaire-admin.tpl +++ b/templates/xnetgrp/annuaire-admin.tpl @@ -26,7 +26,7 @@