Skip to content

Commit

Permalink
Fixed bug in obtainLock(), where it always fails to verify the lock. …
Browse files Browse the repository at this point in the history
…This fixes dokuwiki#1019, fixes dokuwiki#1311
  • Loading branch information
JustinTrouble committed Nov 30, 2015
1 parent b8f2f10 commit cb62a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dwpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ protected function obtainLock($wiki_id) {

lock($wiki_id);

if(checklock($wiki_id) != $this->username) {
if(checklock($wiki_id)) {
$this->error("Unable to obtain lock for $wiki_id ");
var_dump(checklock($wiki_id));
exit(1);
Expand Down

0 comments on commit cb62a66

Please sign in to comment.