From 4070cddfb255bbaee94620a611be0246b35e4191 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 1 Nov 2004 20:50:03 +0000 Subject: [PATCH] Bug 2140 solved partially. Now categories are deleted properly. Delete of orphan categories will be done later... Merged from MOODLE_14_STABLE --- mod/glossary/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 3a7b4ba61a..cead996270 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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); -- 2.39.5