1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

more php8 fixes mostly related to login

This commit is contained in:
Andrew Dolgov
2021-02-06 00:12:15 +03:00
parent 403dca154c
commit 6e774a58fe
9 changed files with 17 additions and 14 deletions

View File

@@ -97,7 +97,7 @@ class UserHelper {
} else {
if (!validate_session()) $_SESSION["uid"] = false;
if (!$_SESSION["uid"]) {
if (empty($_SESSION["uid"])) {
if (AUTH_AUTO_LOGIN && self::authenticate(null, null)) {
$_SESSION["ref_schema_version"] = get_schema_version(true);
@@ -105,7 +105,7 @@ class UserHelper {
self::authenticate(null, null, true);
}
if (!$_SESSION["uid"]) {
if (empty($_SESSION["uid"])) {
Pref_Users::logout_user();
Handler_Public::render_login_form();