From: Andrew Dolgov Date: Thu, 20 Sep 2007 02:57:53 +0000 (+0100) Subject: validate_session: hotfix for SINGLE_USER_MODE X-Git-Tag: 1.2.16~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=741edab27a6fa0cf3ae11d98106eb2e05c7592f3;p=tt-rss.git validate_session: hotfix for SINGLE_USER_MODE --- 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"]) {