[Minor] Fixed obsolete trigger upon attempt at page save after draft autosave
authorDan
Tue, 12 Feb 2008 07:33:25 -0500
changeset 416 53fcdf309a82
parent 415 c8d0eaa4c0b1
child 417 b76ebe229548
[Minor] Fixed obsolete trigger upon attempt at page save after draft autosave
ajax.php
--- 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();