Index: modules/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v
retrieving revision 1.252
diff -u -p -r1.252 taxonomy.module
--- modules/taxonomy.module	10 Jan 2006 19:56:19 -0000	1.252
+++ modules/taxonomy.module	16 Jan 2006 17:35:47 -0000
@@ -169,7 +169,7 @@ function taxonomy_save_vocabulary(&$edit
 }
 
 function taxonomy_del_vocabulary($vid) {
-  $vocabulary = taxonomy_get_vocabulary($vid);
+  $vocabulary = (array) taxonomy_get_vocabulary($vid);
 
   db_query('DELETE FROM {vocabulary} WHERE vid = %d', $vid);
   db_query('DELETE FROM {vocabulary_node_types} WHERE vid = %d', $vid);
@@ -331,7 +331,7 @@ function taxonomy_del_term($tid) {
         }
       }
 
-      $term = taxonomy_get_term($tid);
+      $term = (array) taxonomy_get_term($tid);
 
       db_query('DELETE FROM {term_data} WHERE tid = %d', $tid);
       db_query('DELETE FROM {term_hierarchy} WHERE tid = %d', $tid);
@@ -340,7 +340,7 @@ function taxonomy_del_term($tid) {
       db_query('DELETE FROM {term_node} WHERE tid = %d', $tid);
 
       module_invoke_all('taxonomy', 'delete', 'term', $term);
-      drupal_set_message(t('Deleted term %name.', array('%name' => theme('placeholder', $term->name))));
+      drupal_set_message(t('Deleted term %name.', array('%name' => theme('placeholder', $term['name']))));
     }
 
     $tids = $orphans;
