Skip to content
Snippets Groups Projects
Commit 78035fe8 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

don't rely on metadata for conflict detection

This also fixes a problem wiht PHP 5.4 when there is metadata but the
date key is empty.
parent f32f3fdf
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,7 @@ function act_edit($act){
// Use the date of the newest revision, not of the revision we edit
// This is used for conflict detection
if(!$DATE) $DATE = $INFO['meta']['date']['modified'];
if(!$DATE) $DATE = @filemtime(wikiFN($ID));
//check if locked by anyone - if not lock for my self
//do not lock when the user can't edit anyway
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment