Commit e1304697 authored by Dries's avatar Dries
Browse files

- Patch #62350 by hunmonk: fixed problem with deleting forum containers.

parent 823673a1
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment