]> git.mjollnir.org Git - moodle.git/commitdiff
Bug 2140 solved partially. Now categories are
authorstronk7 <stronk7>
Mon, 1 Nov 2004 20:50:03 +0000 (20:50 +0000)
committerstronk7 <stronk7>
Mon, 1 Nov 2004 20:50:03 +0000 (20:50 +0000)
deleted properly.

Delete of orphan categories will be done later...

Merged from MOODLE_14_STABLE

mod/glossary/lib.php

index 3a7b4ba61a7f96aae59b062554870d3a2c234b9d..cead9962706ec5fb9760856f2c0ea894c4b4dee3 100644 (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);