|
|
|
@ -2760,7 +2760,7 @@ class learnpath |
|
|
|
|
// It's a simple string item from which the ID can be found in the refs list, |
|
|
|
|
// so we can transform it directly to an ID for export. |
|
|
|
|
return $this->items[$this->refs_list[$prereq]]->ref; |
|
|
|
|
} else if (isset($this->refs_list['ITEM_'.$prereq])) { |
|
|
|
|
} elseif (isset($this->refs_list['ITEM_'.$prereq])) { |
|
|
|
|
return $this->items[$this->refs_list['ITEM_'.$prereq]]->ref; |
|
|
|
|
} else { |
|
|
|
|
// The last case, if it's a complex form, then find all the IDs (SCORM strings) |
|
|
|
@ -3631,7 +3631,7 @@ class learnpath |
|
|
|
|
if (Database::num_rows($res) > 0) { |
|
|
|
|
$row = Database::fetch_array($res); |
|
|
|
|
$this->lp_view_id = $row['id']; |
|
|
|
|
} else if (!api_is_invitee()) { |
|
|
|
|
} elseif (!api_is_invitee()) { |
|
|
|
|
// There is no database record, create one. |
|
|
|
|
$sql = "INSERT INTO $lp_view_table (c_id, lp_id,user_id, view_count, session_id) VALUES |
|
|
|
|
($course_id, ".$this->get_id().",".$this->get_user_id().", 1, $sessionId)"; |
|
|
|
|