| @@ 104-108 (lines=5) @@ | ||
| 101 | exit; |
|
| 102 | } |
|
| 103 | // If the survey is shared => also delete the shared content |
|
| 104 | if (isset($survey_data['survey_share']) && |
|
| 105 | is_numeric($survey_data['survey_share']) |
|
| 106 | ) { |
|
| 107 | SurveyManager::delete_survey($survey_data['survey_share'], true); |
|
| 108 | } |
|
| 109 | ||
| 110 | $return = SurveyManager::delete_survey($_GET['survey_id']); |
|
| 111 | ||
| @@ 2250-2252 (lines=3) @@ | ||
| 2247 | $survey_data = Database::fetch_array($result,'ASSOC'); |
|
| 2248 | ||
| 2249 | // if the survey is shared => also delete the shared content |
|
| 2250 | if (isset($survey_data['survey_share']) && is_numeric($survey_data['survey_share'])) { |
|
| 2251 | SurveyManager::delete_survey($survey_data['survey_share'], true,$this->destination_course_id); |
|
| 2252 | } |
|
| 2253 | SurveyManager :: delete_survey($survey_data['survey_id'],false,$this->destination_course_id); |
|
| 2254 | ||
| 2255 | // Insert the new source survey |
|