# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /home/sbatman/Dropbox/workspace-alla3/2000pubblicita/trunk/modules/contrib/nat
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: nat.module
--- nat.module Base (BASE)
+++ nat.module Locally Modified (Based On LOCAL)
@@ -130,6 +130,7 @@
               $forbidden_tids[$term->vid][$term->tid] = $term->tid;
             }
           }
+	  if(isset ($form['taxonomy'])){
           foreach ($form['taxonomy'] as $vid => $values) {
             if (isset($forbidden_tids[$vid])) {
               unset($values['#options']['']);
@@ -142,6 +143,7 @@
             }
           }
         }
+        }
 
         // Related terms.
         if (isset($config['related'][$type])) {
