Fixed missing library include when deleting an instance

This commit is contained in:
David Mudrak
2010-01-04 18:25:03 +00:00
parent aabf73b7a1
commit f7d3a9656f
+3 -1
View File
@@ -156,7 +156,9 @@ function workshop_update_instance(stdClass $workshop) {
* @return boolean Success/Failure
*/
function workshop_delete_instance($id) {
global $DB;
global $CFG, $DB;
require_once($CFG->libdir.'/gradelib.php');
if (! $workshop = $DB->get_record('workshop', array('id' => $id))) {
return false;