|
@@ -2762,7 +2762,8 @@ class learnpath
|
|
|
* @return array
|
|
|
* @todo Translate labels
|
|
|
*/
|
|
|
- public function get_iv_objectives_array($lp_iv_id = 0) {
|
|
|
+ public static function get_iv_objectives_array($lp_iv_id = 0)
|
|
|
+ {
|
|
|
$course_id = api_get_course_int_id();
|
|
|
$table = Database :: get_course_table(TABLE_LP_IV_OBJECTIVE);
|
|
|
$sql = "SELECT * FROM $table WHERE c_id = $course_id AND lp_iv_id = $lp_iv_id ORDER BY order_id ASC";
|
|
@@ -2789,6 +2790,7 @@ class learnpath
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
return $list;
|
|
|
}
|
|
|
|