mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 14:35:29 +02:00
MDL-44170 LTI - fix unit tests.
This commit is contained in:
parent
c8d940a5a6
commit
5582fe49cc
@ -95,7 +95,7 @@ function lti_add_instance($lti, $mform) {
|
||||
$lti->timemodified = $lti->timecreated;
|
||||
$lti->servicesalt = uniqid('', true);
|
||||
|
||||
if ($lti->typeid == 0 && isset($lti->urlmatchedtypeid)) {
|
||||
if (empty($lti->typeid) && isset($lti->urlmatchedtypeid)) {
|
||||
$lti->typeid = $lti->urlmatchedtypeid;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user