--- /home/wolfgang/drupal-cvs/drupal-cvs/modules/taxonomy.module	2005-03-21 22:00:02.000000000 +0100
+++ modules/taxonomy.module	2005-03-26 14:12:34.000000000 +0100
@@ -493,9 +493,9 @@
  * Save term associations for a given node.
  */
 function taxonomy_node_save($nid, $terms) {
-  taxonomy_node_delete($nid);
 
   if (is_array($terms)) {
+    taxonomy_node_delete($nid);
     foreach ($terms as $term) {
       if (is_array($term)) {
         foreach ($term as $tid) {
