summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-09-20 03:57:53 +0100
committerAndrew Dolgov <[email protected]>2007-09-20 03:57:53 +0100
commit741edab27a6fa0cf3ae11d98106eb2e05c7592f3 (patch)
treee77bf87a037a49c234fdb23d08522b577e91ee13
parent92952e25dc5d3dc4f2d7fdb0d0198e5924190291 (diff)
validate_session: hotfix for SINGLE_USER_MODE
-rw-r--r--functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 38b4d5ffe..163b4adda 100644
--- a/functions.php
+++ b/functions.php
@@ -1534,6 +1534,10 @@
}
function validate_session($link) {
+ if (SINGLE_USER_MODE) {
+ return true;
+ }
+
if (SESSION_CHECK_ADDRESS && $_SESSION["uid"]) {
if ($_SESSION["ip_address"]) {
if ($_SESSION["ip_address"] != $_SERVER["REMOTE_ADDR"]) {