summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-05-16 08:35:38 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-05-16 08:35:38 +0200
commit0712fefaefb6c7857ccc3455db2d8d269fb3ed16 (patch)
tree06de837dd9ceed95c078b6280fa05898e61f84fd
parent272e9decc1b5a964c3303ffe8b5d52e9e08fde68 (diff)
downloadrpg-0712fefaefb6c7857ccc3455db2d8d269fb3ed16.tar.gz
rpg-0712fefaefb6c7857ccc3455db2d8d269fb3ed16.tar.bz2
don't unlock based on empty session
-rw-r--r--inc/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index 9fbebde94..c960c8739 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -796,7 +796,7 @@ function checklock($id) {
//my own lock
@list($ip, $session) = explode("\n", io_readFile($lock));
- if($ip == $INPUT->server->str('REMOTE_USER') || $ip == clientIP() || $session == session_id()) {
+ if($ip == $INPUT->server->str('REMOTE_USER') || $ip == clientIP() || (session_id() && $session == session_id())) {
return false;
}