MDL-34904 lti: Fix notice while using lti in frontpage

This commit is contained in:
Ankit Agarwal
2014-05-02 14:07:46 +08:00
parent 9257294cf2
commit 7ec3dbd75d
+1 -1
View File
@@ -615,7 +615,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;