$surveyInfo = Survey::retrieveSurveyInfo($id); // retrieves information about the survey (does not retrieve and unserialize the object structure)
if ($surveyInfo == null) {
return $this->show_error($page, "Sondage ".$id." introuvable.", 'survey/admin');
}
if (Post::has('survey_submit')) { // needs a confirmation before validation
if (Survey::validateSurvey($id)) { // validates the survey (in the database)
$surveyInfo = Survey::retrieveSurveyInfo($id); // retrieves information about the survey (does not retrieve and unserialize the object structure)
if ($surveyInfo == null) {
return $this->show_error($page, "Sondage ".$id." introuvable.", 'survey/admin');
}
if (Post::has('survey_submit')) { // needs a confirmation before validation
if (Survey::validateSurvey($id)) { // validates the survey (in the database)