Fixing bug when empty documents see #5462

skala
Julio Montoya 12 years ago
parent 6e5e4ac528
commit c001764315
  1. 7
      main/coursecopy/recycle_course.php

@ -63,10 +63,9 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
if (!$course->has_resources()) {
echo get_lang('NoResourcesToRecycle');
} else {
Display::display_warning_message(get_lang('RecycleWarning'), false);
$form = new FormValidator('recycle_course', 'post', 'recycle_course.php');
$form->addElement('header',get_lang('SelectOptionForBackup'));
Display::display_warning_message(get_lang('RecycleWarning'), false);
$form = new FormValidator('recycle_course', 'post', 'recycle_course.php?'.api_get_cidreq());
$form->addElement('header', get_lang('SelectOptionForBackup'));
$form->addElement('radio', 'recycle_option', null, get_lang('FullRecycle'), 'full_backup');
$form->addElement('radio', 'recycle_option', null, get_lang('LetMeSelectItems'), 'select_items');

Loading…
Cancel
Save