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:
stronk7 2004-11-01 20:50:03 +00:00
parent 983e7d0e2a
commit 4070cddfb2

View File

@ -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);