Minor - fixing PHP warnings.

1.9.x
Julio Montoya 11 years ago
parent 312e281986
commit ce77ad80ad
  1. 1
      main/inc/lib/fileManage.lib.php
  2. 1
      main/inc/lib/fileUpload.lib.php
  3. 6
      main/newscorm/lp_edit_item_prereq.php

@ -260,6 +260,7 @@ function copyDirTo($orig_dir_path, $destination, $move = true) {
$save_dir = getcwd();
// Extract directory name - create it at destination - update destination trail
$dir_name = basename($orig_dir_path);
$dir_to_copy = array();
if (is_dir($orig_dir_path)) {
mkdir($destination.'/'.$dir_name, api_get_permissions_for_new_directories());
$destination_trail = $destination.'/'.$dir_name;

@ -465,6 +465,7 @@ function dir_total_space($dir_path) {
chdir($dir_path) ;
$handle = opendir($dir_path);
$sumSize = 0;
$dirList = array();
while ($element = readdir($handle)) {
if ( $element == '.' || $element == '..') {
continue; // Skip the current and parent directories

@ -30,9 +30,9 @@ $tbl_lp = Database::get_course_table(TABLE_LP_MAIN);
$tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);
$tbl_lp_view = Database::get_course_table(TABLE_LP_VIEW);
$isStudentView = (int) $_REQUEST['isStudentView'];
$learnpath_id = (int) $_REQUEST['lp_id'];
$submit = $_POST['submit_button'];
$isStudentView = isset($_REQUEST['isStudentView']) ? (int) $_REQUEST['isStudentView'] : null;
$learnpath_id = isset($_REQUEST['lp_id']) ? (int) $_REQUEST['lp_id'] : null;
$submit = isset($_POST['submit_button']) ? $_POST['submit_button'] : null;
/* MAIN CODE */

Loading…
Cancel
Save