X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fsurveys.inc.php;h=bf03ad9639b1e1cc059bc88bd129ef10f510719d;hb=80bb82f674b875b983db355eb0c8a9623e679d3c;hp=5a519b41fdcbf43a89204650717e408333f80995;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/include/validations/surveys.inc.php b/include/validations/surveys.inc.php index 5a519b4..bf03ad9 100644 --- a/include/validations/surveys.inc.php +++ b/include/validations/surveys.inc.php @@ -1,6 +1,6 @@ title = $_title; $this->description = $_description; $this->end = $_end; @@ -91,7 +91,7 @@ class SurveyReq extends Validate public function commit() { - $sql = 'INSERT INTO survey_surveys + $sql = 'INSERT INTO surveys SET questions={?}, title={?}, description={?}, @@ -99,7 +99,7 @@ class SurveyReq extends Validate end={?}, mode={?}, promos={?}'; - return XDB::execute($sql, serialize($this->questions), $this->title, $this->description, $this->uid, $this->end, $this->mode, $this->promos); + return XDB::execute($sql, serialize($this->questions), $this->title, $this->description, $this->user->id(), $this->end, $this->mode, $this->promos); } // }}}