Fix error in plugin uninstall query

1.10.x
Yannick Warnier 10 years ago
parent ba5a66badd
commit daa66ef233
  1. 5
      plugin/bbb/lib/bbb_plugin.class.php

@ -86,10 +86,11 @@ class BBBPlugin extends Plugin
Database::query($sql);
//hack to get rid of Database::query warning (please add c_id...)
$sql = "DELETE FROM $t_tool WHERE name = 'bbb'";//" AND c_id = c_id";
$sql = "DELETE FROM $t_tool WHERE name = 'bbb' AND c_id != 0";
Database::query($sql);
$sql = "DROP TABLE IF EXISTS plugin_bbb_meeting";
$t = Database::get_main_table('plugin_bbb_meeting');
$sql = "DROP TABLE IF EXISTS $t";
Database::query($sql);
//Deleting course settings

Loading…
Cancel
Save