Fixed bug in obtainLock(), where it always fails to verify the lock. This fixes #1019, fixes #1311

This commit is contained in:
JustinTrouble 2015-11-30 13:55:45 +00:00
parent b8f2f1086b
commit cb62a664a0

View file

@ -248,7 +248,7 @@ class PageCLI extends DokuCLI {
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);