Skip to content

Commit

Permalink
MDL-44170 LTI - fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Apr 10, 2014
1 parent 3ca6a45 commit b576ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lti/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b576ff3

Please sign in to comment.