File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ function moodleoverflow_delete_instance($id) {
269269 // Delete the subscription elements.
270270 $ DB ->delete_records ('moodleoverflow_subscriptions ' , array ('moodleoverflow ' => $ moodleoverflow ->id ));
271271 $ DB ->delete_records ('moodleoverflow_discuss_subs ' , array ('moodleoverflow ' => $ moodleoverflow ->id ));
272- $ DB ->delete_records ('moodleoverflow_grades ' , array ('moodleoverflow ' => $ moodleoverflow ->id ));
272+ $ DB ->delete_records ('moodleoverflow_grades ' , array ('moodleoverflowid ' => $ moodleoverflow ->id ));
273273
274274 // Delete the discussion recursivly.
275275 if ($ discussions = $ DB ->get_records ('moodleoverflow_discussions ' , array ('moodleoverflow ' => $ moodleoverflow ->id ))) {
@@ -1197,4 +1197,4 @@ function moodleoverflow_grade_item_update($moodleoverflow, $grades=null) {
11971197 }
11981198
11991199 return $ gradeupdate ;
1200- }
1200+ }
You can’t perform that action at this time.
0 commit comments