Julio Montoya %!s(int64=12) %!d(string=hai) anos
pai
achega
29d5312491
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      main/survey/generate_link.php

+ 2 - 1
main/survey/generate_link.php

@@ -11,9 +11,10 @@ if (!api_is_allowed_to_edit(false, true)) {
 
 $survey_id = isset($_REQUEST['survey_id']) ? intval($_REQUEST['survey_id']) : null;
 
-if (empty($suvrey_id)) {
+if (empty($survey_id)) {
     api_not_allowed(true);
 }
+
 $survey_data = survey_manager::get_survey($survey_id);
 
 $interbreadcrumb[] = array('url' => 'survey_list.php', 'name' => get_lang('SurveyList'));