From a623d3fcca0580fdcecf141d7440c2e0b2389663 Mon Sep 17 00:00:00 2001
From: Nathaniel <catch@35733.no-reply.drupal.org>
Date: Wed, 28 Sep 2011 12:35:19 +0900
Subject: [PATCH] Issue #1060772 by agentrickard, DeweyOxberger: Fixed Create a
 view of taxonomy terms (Views UI) and get an error from hook_form_alter().

---
 modules/forum/forum.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index dd6c6de405fb..65c54894186d 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -582,7 +582,7 @@ function forum_field_storage_pre_update($entity_type, $entity, &$skip_fields) {
  */
 function forum_form_alter(&$form, $form_state, $form_id) {
   $vid = variable_get('forum_nav_vocabulary', 0);
-  if (isset($form['vid']) && $form['vid']['#value'] == $vid) {
+  if (isset($form['vid']['#value']) && $form['vid']['#value'] == $vid) {
     // Hide critical options from forum vocabulary.
     if ($form_id == 'taxonomy_form_vocabulary') {
       $form['help_forum_vocab'] = array(
-- 
GitLab