Fixes PHP warnings

skala
Julio Montoya 13 years ago
parent 7ce8028438
commit e58b8211e0
  1. 3
      main/newscorm/learnpath.class.php

@ -8837,8 +8837,9 @@ class learnpath {
//Add files inside the HTMLs
$new_path = str_replace('/courses/', '', $old_new['orig']);
//var_dump($sys_course_path.$new_path); var_dump($archive_path.$temp_dir_short.'/'.$old_new['dest']); echo '---';
if (file_exists($sys_course_path.$new_path)) {
copy($sys_course_path.$new_path, $archive_path.$temp_dir_short.'/'.$old_new['dest']);
}
}
file_put_contents($dest_file, $string);
}

Loading…
Cancel
Save