Minor cosmetic changes

skala
Julio Montoya 13 years ago
parent 0b810b4b93
commit cef17ede38
  1. 10
      main/newscorm/learnpath.class.php

@ -61,23 +61,17 @@ class learnpath {
public $user_id; //ID of the user that is viewing/using the course
public $update_queue = array();
public $scorm_debug = 0;
public $arrMenu = array(); // Array for the menu items.
public $debug = 0; // Logging level.
public $lp_session_id = 0;
public $lp_view_session_id = 0; // The specific view might be bound to a session.
public $prerequisite = 0;
public $use_max_score = 1; // 1 or 0
public $created_on = '';
public $modified_on = '';
public $publicated_on = '';
public $expired_on = '';
public $ref = null;
public $course_int_id;
public function get_course_int_id() {
@ -1355,7 +1349,6 @@ class learnpath {
* @return string Zip file path (or false on error)
*/
public function export_lp($type, $course, $id, $zipname) {
$course_id = api_get_course_int_id();
//if ($this->debug > 0) { error_log('New LP - In learnpath::export_lp()', 0); }
if (empty($type) || empty($course) || empty($id) || empty($zipname)) {
return false;
@ -3594,7 +3587,7 @@ class learnpath {
}
if (is_object($this->items[$item])) {
$prereq_string = $this->items[$item]->get_prereq_string();
if (empty ($prereq_string)) {
if (empty($prereq_string)) {
return true;
}
// Clean spaces.
@ -5038,7 +5031,6 @@ class learnpath {
);
}
$this->tree_array($arrLP);
$arrLP = $this->arrMenu;
unset ($this->arrMenu);

Loading…
Cancel
Save