ajax.php
changeset 472 bc4b58034f4d
parent 468 194a19711346
child 481 07bf15b066bc
--- a/ajax.php	Sat Mar 01 23:02:05 2008 -0500
+++ b/ajax.php	Sun Mar 02 19:32:19 2008 -0500
@@ -361,7 +361,7 @@
       }
       
       // If this is based on a draft version, delete the draft - we no longer need it.
-      if ( @$request['used_draft'] )
+      if ( @$request['used_draft'] && !$request['draft'] )
       {
         $q = $db->sql_query('DELETE FROM ' . table_prefix . 'logs WHERE log_type = \'page\' AND action = \'edit\'
                                AND page_id = \'' . $db->escape($paths->page_id) . '\'