summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 15:28:27 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 15:28:27 +0300
commitefd196839a20ae7e38be227c62b9c134ddec4bea (patch)
treece669c677cd793165af87e71e49adade319baa3b /classes/handler/public.php
parent1464abbbfc73171bd65e13d3b6e07511f5663815 (diff)
stop caching schema version entirely, fix some session_start() related warnings
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index cc5d35079..bf0160db6 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -390,7 +390,8 @@ class Handler_Public extends Handler {
} else {
// start an empty session to deliver login error message
- @session_start();
+ if (session_status() != PHP_SESSION_ACTIVE)
+ session_start();
if (!isset($_SESSION["login_error_msg"]))
$_SESSION["login_error_msg"] = __("Incorrect username or password");