blocks MDL-19788 Fixed use of delete_records

This commit is contained in:
Sam Hemelryk
2009-12-07 05:49:30 +00:00
parent 494bf5c8cf
commit 78bcd545d0
+2 -1
View File
@@ -133,7 +133,8 @@ class block_section_links extends block_base {
return true;
}
function before_delete() {
delete_records('config_plugins', 'plugin', 'blocks/section_links');
global $DB;
$DB->delete_records('config_plugins', 'plugin', 'blocks/section_links');
}
}