mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Bug 2140 solved partially. Now categories are
deleted properly. Delete of orphan categories will be done later... Merged from MOODLE_14_STABLE
This commit is contained in:
parent
983e7d0e2a
commit
4070cddfb2
@ -137,7 +137,7 @@ function glossary_delete_instance($id) {
|
||||
} else {
|
||||
if ($categories = get_records("glossary_categories","glossaryid",$glossary->id)) {
|
||||
$cats = "";
|
||||
foreach ( $categories as $hook ) {
|
||||
foreach ( $categories as $cat ) {
|
||||
$cats .= "$cat->id,";
|
||||
}
|
||||
$cats = substr($cats,0,-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user