Index: modules/hs_content_taxonomy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hierarchical_select/modules/hs_content_taxonomy.module,v
retrieving revision 1.2
diff -u -F^f -r1.2 hs_content_taxonomy.module
--- modules/hs_content_taxonomy.module	18 May 2008 12:17:29 -0000	1.2
+++ modules/hs_content_taxonomy.module	18 May 2008 23:52:54 -0000
@@ -61,7 +61,7 @@ function hs_content_taxonomy_config_form
 
   // Extract the necessary context from the $field array.
   $vid = $field['vid'];
-  $depth = $field['depth'];
+  $depth = (empty($field['depth'])) ? 0 : $field['depth'];
   $dropbox_status = $field['multiple'];
 
   // Add the Hierarchical Select config form.
@@ -187,7 +187,7 @@ function hs_content_taxonomy_widget($op,
     $field_name = $field['field_name'];
     $vid        = $field['vid'];
     $tid        = $field['tid'];
-    $depth      = $field['depth'];
+    $depth      = (empty($field['depth'])) ? 0 : $field['depth'];
 
     switch ($op) {
       case 'form':
@@ -245,7 +245,7 @@ function hs_content_taxonomy_hierarchica
     foreach ($fields as $field_name => $field_properties) {
       if ($field_properties['type_name'] == $content_type) {
         $vid = $field_properties['vid'];
-        $depth = $field_properties['depth'];
+        $depth = $depth = (empty($field['depth'])) ? 0 : $field_properties['depth'];
 
         // Hierarchical Select only makes sense if there's a hierarchy.
         if ($depth != 1) {
