Minor - use '&&' fix comment

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 8ce2f7d9fd
commit 3c9aa1e7b7
  1. 2
      main/document/document.php
  2. 2
      main/lp/lp_add.php

@ -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);
}

Loading…
Cancel
Save