$course_id must be set see BT#12060

pull/2487/head
jmontoyaa 9 years ago
parent d80f4bc65e
commit d8754225bf
  1. 2
      main/lp/learnpathItem.class.php

@ -1703,7 +1703,7 @@ class learnpathItem
if ($debug > 2) {
error_log('learnpathItem::get_status(): checking db', 0);
}
if (!empty($this->db_item_view_id)) {
if (!empty($this->db_item_view_id) && !empty($course_id)) {
$table = Database::get_course_table(TABLE_LP_ITEM_VIEW);
$sql = "SELECT status FROM $table
WHERE

Loading…
Cancel
Save