Minor - Learning path: update script reference in error_log

pull/2487/head
Yannick Warnier 8 years ago
parent 37cddd152e
commit 2d56cd8230
  1. 2
      main/lp/lp_add_audio.php
  2. 2
      main/lp/lp_edit_item.php

@ -21,7 +21,7 @@ $type = isset($_GET['type']) ? $_GET['type'] : null;
$action = isset($_GET['action']) ? $_GET['action'] : null;
if ((!$is_allowed_to_edit) || ($isStudentView)) {
error_log('New LP - User not authorized in lp_add_item.php');
error_log('New LP - User not authorized in lp_add_audio.php');
header('location:lp_controller.php?action=view&lp_id='.$learnpath_id);
exit;
}

@ -65,7 +65,7 @@ $submit = isset($_POST['submit_button']) ? $_POST['submit_button'] : null;
/* MAIN CODE */
if ((!$is_allowed_to_edit) || ($isStudentView)) {
error_log('New LP - User not authorized in lp_add_item.php');
error_log('New LP - User not authorized in lp_edit_item.php');
header('location:lp_controller.php?action=view&lp_id='.$learnpath_id);
exit;
}

Loading…
Cancel
Save