| @@ 103-107 (lines=5) @@ | ||
| 100 | exit; |
|
| 101 | } |
|
| 102 | // If the survey is shared => also delete the shared content |
|
| 103 | if (isset($survey_data['survey_share']) && |
|
| 104 | is_numeric($survey_data['survey_share']) |
|
| 105 | ) { |
|
| 106 | SurveyManager::delete_survey($survey_data['survey_share'], true); |
|
| 107 | } |
|
| 108 | ||
| 109 | $return = SurveyManager::delete_survey($_GET['survey_id']); |
|
| 110 | ||
| @@ 2321-2323 (lines=3) @@ | ||
| 2318 | $survey_data = Database::fetch_array($result, 'ASSOC'); |
|
| 2319 | ||
| 2320 | // if the survey is shared => also delete the shared content |
|
| 2321 | if (isset($survey_data['survey_share']) && is_numeric($survey_data['survey_share'])) { |
|
| 2322 | SurveyManager::delete_survey($survey_data['survey_share'], true, $this->destination_course_id); |
|
| 2323 | } |
|
| 2324 | SurveyManager::delete_survey($survey_data['survey_id'], false, $this->destination_course_id); |
|
| 2325 | ||
| 2326 | // Insert the new source survey |
|