MDL-44170 LTI - fix unit tests.
This commit is contained in:
+1
-1
@@ -96,7 +96,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user