ajax.php
changeset 416 53fcdf309a82
parent 413 6607cd646d6d
child 417 b76ebe229548
--- a/ajax.php	Tue Feb 12 07:25:54 2008 -0500
+++ b/ajax.php	Tue Feb 12 07:33:25 2008 -0500
@@ -279,7 +279,7 @@
       else
       {
         // Verify that no edits have been made since the editor was requested
-        $q = $db->sql_query('SELECT time_id, author FROM ' . table_prefix . "logs WHERE log_type = 'page' AND action = 'edit' AND page_id = '{$paths->page_id}' AND namespace = '{$paths->namespace}' ORDER BY time_id DESC LIMIT 1;");
+        $q = $db->sql_query('SELECT time_id, author FROM ' . table_prefix . "logs WHERE log_type = 'page' AND action = 'edit' AND page_id = '{$paths->page_id}' AND namespace = '{$paths->namespace}' AND is_draft != 1 ORDER BY time_id DESC LIMIT 1;");
         if ( !$q )
           $db->die_json();