Index: modules/sidecontent/sidecontent.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sidecontent/sidecontent.module,v
retrieving revision 1.2
diff -u -r1.2 sidecontent.module
--- modules/sidecontent/sidecontent.module	14 Jan 2005 11:27:56 -0000	1.2
+++ modules/sidecontent/sidecontent.module	31 Jan 2005 13:15:08 -0000
@@ -91,8 +91,8 @@
         break;
       case "update":
         if (variable_get('sidecontent_'. $node->type, TRUE)) { 
-          if ($node->sidecontent == NULL) return;
           db_query("DELETE FROM {sidecontent} WHERE nid = '%d'", $node->nid);
+          if ($node->sidecontent == NULL) return;
                     db_query("INSERT INTO {sidecontent} (nid, sidecontent) VALUES ('%d', '%s')", $node->nid, $node->sidecontent);
         }
         break;
@@ -113,4 +113,4 @@
 
 
 
-?>
\ No newline at end of file
+?>
