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

This commit is contained in:
Ankit Agarwal 2014-05-02 14:05:13 +08:00
parent f500ff4e52
commit 200aeda661

View File

@ -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;