Moving table definition.

1.9.x
Julio Montoya 11 years ago
parent 6b936273ff
commit 642a80e9e8
  1. 4
      main/newscorm/learnpathItem.class.php

@ -95,6 +95,8 @@ class learnpathItem
$course_id = null,
$item_content = null
) {
$items_table = Database::get_course_table(TABLE_LP_ITEM);
// Get items table.
if (!isset($user_id)) {
$user_id = api_get_user_id();
@ -109,7 +111,7 @@ class learnpathItem
$id = intval($id);
if (empty($item_content)) {
$items_table = Database::get_course_table(TABLE_LP_ITEM);
if (empty($course_id)) {
$course_id = api_get_course_int_id();
} else {

Loading…
Cancel
Save