Minor - Code styling

pull/3025/head
Yannick Warnier 6 years ago
parent 9fc52273c0
commit 27ec47db5b
  1. 2
      main/survey/fillsurvey.php

@ -71,7 +71,7 @@ $surveyCode = isset($_GET['scode']) ? Database::escape_string($_GET['scode']) :
if ($surveyCode != '') { if ($surveyCode != '') {
// Firstly we check if this survey is ready for anonymous use: // Firstly we check if this survey is ready for anonymous use:
$sql = "SELECT anonymous FROM $table_survey $sql = "SELECT anonymous FROM $table_survey
WHERE c_id = $course_id AND code ='".$surveyCode."'"; WHERE c_id = $course_id AND code ='$surveyCode'";
$resultAnonymous = Database::query($sql); $resultAnonymous = Database::query($sql);
$rowAnonymous = Database::fetch_array($resultAnonymous, 'ASSOC'); $rowAnonymous = Database::fetch_array($resultAnonymous, 'ASSOC');
// If is anonymous and is not allowed to take the survey to anonymous users, forbid access: // If is anonymous and is not allowed to take the survey to anonymous users, forbid access:

Loading…
Cancel
Save