X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fsurvey%2Fsurvey.inc.php;h=497a7f86db54ed9224e826136903659615b3e1b3;hb=905ab10422941d19d99b4957c009914a64d19399;hp=299b7fb0495e866cf2fcf6c0c8383899338429e4;hpb=245923e335d0da5bec9495991a7846be9f0563ab;p=platal.git diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index 299b7fb..497a7f8 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -1,6 +1,6 @@ id, $uid); // notes the user as having voted + SET survey_id = {?}, uid = {?}', + $this->id, ($uid == 0) ? null : $uid); // notes the user as having voted $vid = XDB::insertId(); for ($i = 0; $i < count($this->questions); $i++) { $ans = $this->questions[$i]->checkAnswer($args[$i]);