From e1304697c4da2ad7f145956ffe440a63952be995 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 8 May 2006 15:16:16 +0000 Subject: - Patch #62350 by hunmonk: fixed problem with deleting forum containers. --- modules/forum.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index 8589b4d0a..6a27f6855 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -160,7 +160,8 @@ function forum_taxonomy($op, $type, $term = NULL) { // For containers, remove the tid from the forum_containers variable. $containers = variable_get('forum_containers', array()); - if ($key = array_search($term['tid'], $containers)) { + $key = array_search($term['tid'], $containers); + if ($key !== FALSE) { unset($containers[$key]); } variable_set('forum_containers', $containers); -- cgit v1.2.3