Fixing bug when empty documents see #5462

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

@ -64,9 +64,8 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
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'));
$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