Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.2
-
MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-53351-master-lti-notice -
Description
I found that when a mod_lti instance is being deleted, it throws a PHP notice:
PHP Notice: Trying to get property of non-object in mod/lti/lib.php on line 192
|
I found that it is caused by the lti_delete_instance() code doing
$ltitype = $DB->get_record('lti_types', array('id' => $basiclti->typeid));
|
$DB->delete_records('lti_tool_settings',
|
array('toolproxyid' => $ltitype->toolproxyid, 'course' => $basiclti->course, 'coursemoduleid' => $id));
|
without checking that $ltitype actually found the record.
Note that typeid=0 is a valid and common value representing "Automatic, based on launch URL".
Attachments
Issue Links
- Discovered while testing
-
MDLSITE-3860 Error when attempting to delete large number of courses
-
- Closed
-