@ -647,7 +647,7 @@ if (isset($document_data) && $document_data['path'] == '/certificates') {
if (!$parent_id) {
$testParentId = 0;
// Guess parent id depe
// Get parent id from current path
if (!empty($document_data['path'])) {
$testParentId = DocumentManager::get_document_id(
api_get_course_info(),
@ -76,7 +76,7 @@ echo '</div>';
Display::display_normal_message(get_lang('AddLpIntro'), false);
if ($_POST AND empty($_REQUEST['lp_name'])) {
if ($_POST && empty($_REQUEST['lp_name'])) {
Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false);
}