MDL-53351 lti: Do not throw PHP notice when deleting LTI instance
authorDavid Mudrák <david@moodle.com>
Fri, 4 Mar 2016 15:42:05 +0000 (16:42 +0100)
committerDavid Mudrák <david@moodle.com>
Fri, 4 Mar 2016 15:42:05 +0000 (16:42 +0100)
commit496bf3ea165bbd77dcd71fd054b7af9a48174ba3
tree80f5a247af0333dc18bf364165063c0b1c58aa4e
parent7adc7ef14f07746539c3dd85c9d657601078da74
MDL-53351 lti: Do not throw PHP notice when deleting LTI instance

The typeid=0 is a valid and common value representing "Automatic, based
on launch URL" type. In that case, no record in the lti_types table is
found. Thence attempting to access its toolproxyid property used to
throw PHP notice.
mod/lti/lib.php
mod/lti/tests/lib_test.php