|
|
|
|
@ -98,7 +98,7 @@ SurveyUtil::check_parameters(); |
|
|
|
|
/** @todo this has to be moved to a more appropriate place (after the display_header of the code)*/ |
|
|
|
|
if (!api_is_allowed_to_edit(false,true)) |
|
|
|
|
{ |
|
|
|
|
Display :: display_header(get_lang('Survey')); |
|
|
|
|
Display :: display_header(get_lang('ToolSurvey')); |
|
|
|
|
Display :: display_error_message(get_lang('NotAllowed'), false); |
|
|
|
|
Display :: display_footer(); |
|
|
|
|
exit; |
|
|
|
|
@ -116,7 +116,7 @@ $user_info = Database :: get_main_table(TABLE_MAIN_SURVEY_REMINDER); // TO |
|
|
|
|
|
|
|
|
|
$survey_data = survey_manager::get_survey($survey_id); |
|
|
|
|
if (empty($survey_data)) { |
|
|
|
|
Display :: display_header(get_lang('Survey')); |
|
|
|
|
Display :: display_header(get_lang('ToolSurvey')); |
|
|
|
|
Display :: display_error_message(get_lang('InvallidSurvey'), false); |
|
|
|
|
Display :: display_footer(); |
|
|
|
|
exit; |
|
|
|
|
|