X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fsurvey%2Fsurvey.inc.php;h=0daa07af4b78150595c547bb6c879186a7f236bc;hb=0dc8c5a4cc2a816f3d67ffe85163e9e77b06f90c;hp=c50cc12eb6461f5d89330452987621b27a33df5b;hpb=0783a5ed4d3409bcd7a7e1d908696159999810c8;p=platal.git diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index c50cc12..0daa07a 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -83,6 +83,7 @@ class Survey if ($this->mode == self::MODE_ALL) { $args['promos'] = ''; } + $args['promos'] = str_replace(' ', '', $args['promos']); $this->promos = ($args['promos'] == '' || preg_match('#^(\d{4}-?|(\d{4})?-\d{4})(,(\d{4}-?|(\d{4})?-\d{4}))*$#', $args['promos']))? $args['promos'] : '#'; } // }}}