X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fsurvey%2Fsurvey.inc.php;h=852c5e88fc07d9880d1297883e369286c130daf0;hb=c9566e01c2add8f12a858abe0fbb0bc6b8e3c0d4;hp=cfc2812b16faed051cfe14b46a8ef5d39e3e8692;hpb=8127963d297fab1ccb03df8f69cc9ddcdc645036;p=platal.git diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index cfc2812..852c5e8 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -1,6 +1,6 @@ checkPerms(PERMS_USER)) { + $where .= XDB::format(' AND mode = {?}', self::MODE_ALL); + } $sql = 'SELECT id, title, end, mode FROM surveys WHERE '.$where.'