|
|
|
@ -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: |
|
|
|
|