Minor fixing PHP warnings

skala
Julio Montoya 13 years ago
parent 958fb37997
commit 4b5f07b04e
  1. 4
      main/newscorm/lp_add.php
  2. 2
      main/newscorm/lp_controller.php

@ -69,8 +69,8 @@ function activate_end_date() {
$is_allowed_to_edit = api_is_allowed_to_edit(null, true);
$isStudentView = (int) $_REQUEST['isStudentView'];
$learnpath_id = (int) $_REQUEST['lp_id'];
$isStudentView = isset($_REQUEST['isStudentView']) ? $_REQUEST['isStudentView'] : null;
$learnpath_id = isset($_REQUEST['lp_id']) ? $_REQUEST['lp_id'] : null;
/* MAIN CODE */

@ -319,8 +319,8 @@ switch ($action) {
api_not_allowed(true);
}
if ($debug > 0) error_log('New LP - add_lp action triggered', 0);
if (isset($_REQUEST['lp_name']) && !empty($_REQUEST['lp_name'])) {
$_REQUEST['lp_name'] = trim($_REQUEST['lp_name']);
if (!empty($_REQUEST['lp_name'])) {
$_SESSION['refresh'] = 1;
if (isset($_SESSION['post_time']) && $_SESSION['post_time'] == $_REQUEST['post_time']) {

Loading…
Cancel
Save