equal
deleted
inserted
replaced
277 ); |
277 ); |
278 } |
278 } |
279 else |
279 else |
280 { |
280 { |
281 // Verify that no edits have been made since the editor was requested |
281 // Verify that no edits have been made since the editor was requested |
282 $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;"); |
282 $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;"); |
283 if ( !$q ) |
283 if ( !$q ) |
284 $db->die_json(); |
284 $db->die_json(); |
285 |
285 |
286 $row = $db->fetchrow(); |
286 $row = $db->fetchrow(); |
287 $db->free_result(); |
287 $db->free_result(); |