mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34904 lti: Fix notice while using lti in frontpage
This commit is contained in:
parent
f500ff4e52
commit
200aeda661
@ -614,7 +614,7 @@ function lti_get_types_for_add_instance() {
|
||||
$admintypes = $DB->get_records_sql($query, array('siteid' => $SITE->id, 'courseid' => $COURSE->id, 'active' => LTI_TOOL_STATE_CONFIGURED));
|
||||
|
||||
$types = array();
|
||||
$types[0] = (object)array('name' => get_string('automatic', 'lti'), 'course' => $SITE->id);
|
||||
$types[0] = (object)array('name' => get_string('automatic', 'lti'), 'course' => 0);
|
||||
|
||||
foreach ($admintypes as $type) {
|
||||
$types[$type->id] = $type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user