From 200aeda6613da22724a6b62bcab577ffd7ea5bc7 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Fri, 2 May 2014 14:05:13 +0800 Subject: [PATCH] MDL-34904 lti: Fix notice while using lti in frontpage --- mod/lti/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 4397d3b47af..bb50e8bbb82 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -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;