From 741edab27a6fa0cf3ae11d98106eb2e05c7592f3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 20 Sep 2007 03:57:53 +0100 Subject: [PATCH] validate_session: hotfix for SINGLE_USER_MODE --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.php b/functions.php index 38b4d5ff..163b4add 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"]) { -- 2.39.5