diff --git a/main/newscorm/lp_edit.php b/main/newscorm/lp_edit.php index 51f214a748..d19fb225ed 100644 --- a/main/newscorm/lp_edit.php +++ b/main/newscorm/lp_edit.php @@ -70,6 +70,10 @@ $form->addRule('lp_name', get_lang('ThisFieldIsRequired'), 'required'); $form->addElement('hidden', 'lp_encoding'); $items = learnpath::get_category_from_course_into_select(api_get_course_int_id()); + +if (!empty($items)) { + $items = array_merge(array(get_lang('SelectACategory')), $items); +} $form->addElement('select', 'category_id', get_lang('Category'), $items);