Skip to content

Commit

Permalink
Merge branch 'MDL-54892-master' of https://github.com/tobiasreischman…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 12, 2016
2 parents bdfb19c + c05f310 commit 4a13289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/adminlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ function uninstall_plugin($type, $name) {
$DB->delete_records('event', array('modulename' => $pluginname));

// Delete scheduled tasks.
$DB->delete_records('task_scheduled', array('component' => $pluginname));
$DB->delete_records('task_scheduled', array('component' => $component));

// Delete Inbound Message datakeys.
$DB->delete_records_select('messageinbound_datakeys',
'handler IN (SELECT id FROM {messageinbound_handlers} WHERE component = ?)', array($pluginname));
'handler IN (SELECT id FROM {messageinbound_handlers} WHERE component = ?)', array($component));

// Delete Inbound Message handlers.
$DB->delete_records('messageinbound_handlers', array('component' => $pluginname));
$DB->delete_records('messageinbound_handlers', array('component' => $component));

// delete all the logs
$DB->delete_records('log', array('module' => $pluginname));
Expand Down

0 comments on commit 4a13289

Please sign in to comment.